fix deadlock in pipeline: notifyAll instead of notify

This commit is contained in:
Adrian Sampson 2011-05-05 22:03:14 -07:00
parent e5e11503ad
commit 69f392c8f2
2 changed files with 3 additions and 2 deletions

1
NEWS
View file

@ -18,6 +18,7 @@
cost, however. The virtual filesystem used by BPD is available for
reuse by plugins (e.g., the FUSE plugin).
* Fix crash when autotagging files with no metadata.
* Fix a rare deadlock when finishing the import pipeline.
1.0b8
-----

View file

@ -62,8 +62,8 @@ def _invalidate_queue(q, val=None, sync=True):
q._qsize = _qsize
q._put = _put
q._get = _get
q.not_empty.notify()
q.not_full.notify()
q.not_empty.notifyAll()
q.not_full.notifyAll()
finally:
if sync: