Richard Oudkerk <shibt...@gmail.com> added the comment:

> Let me elaborate: the GIL can perhaps suffer lost wakeups from time to 
> time. The Lock API certainly shouldn't.

I think with FORCE_SWITCHING defined (the default?) it is not possible for the 
thread releasing the GIL to immediately reacquire it (unless there is a 
spurious wakeup when waiting on switch_cond).

If all threads which wait on a condition are testing the same predicate then 
the stolen wakeup issue probably won't cause any misbehaviour.

----------

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

Reply via email to