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

Yes, another correct observation.  This can if a thread is interrupted in 
between releasing the mutex and waiting for the semaphore.
I see no way around this apart from manually creating event objects for every 
thread.

Personally I'm not sure it is a wise guarantee to make.  The shift has been 
away from "handover" semantics towards "retry" semantics for locking in general 
over the last few years, particularly with the rise of multiprocessing.  But 
this distinction should be made clear and I will make sure to document it.  
Thanks for pointing this out.

----------

_______________________________________
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