提交 b1ed62bc 编写于 作者: M Mike O'Connor

try to get rid of deadlock

Signed-off-by: NMike O'Connor <stew@vireo.org>
上级 1cbe83ac
......@@ -144,7 +144,7 @@ class OneAtATime(object):
assert( not self.next_in_line )
self.next_in_line = next
self.next_lock.notify()
self.next_lock.notifyAll()
self.next_lock.release()
def dequeue(self):
......@@ -157,7 +157,7 @@ class OneAtATime(object):
result = self.next_in_line
self.next_in_line = None
self.next_lock.notify()
self.next_lock.notifyAll()
self.next_lock.release()
if isinstance(result, EndOfChanges):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册