Kristján Valur Jónsson <swesk...@gmail.com> added the comment:

imho posix made a mistake in allowing signal/broadcast outside the mutex.  
Otherwise an implementation could rely on the mutex for internal state 
manipulation.  I have my own fast condition variable lib implemented using 
semaphores and it is simple to do if one requires the mutex to be held for the 
signal event.

Condition variables semantics are otherwise quite brilliant. For example, 
allowing for spurious wakeups to occur allows, again, for much simpler 
implementation.

----------

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

Reply via email to