Mark Dickinson added the comment:

I think there's a race condition in the patched version:  'self._flag' could be 
set in between if 'if not signaled:' and the 'self._cond.acquire()', and in 
that case you'll end up waiting for an event that's already occurred.  Do you 
need to recheck 'self._flag' after acquiring the condition?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17389>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to