[issue11618] Locks broken wrt timeouts on Windows

Antoine Pitrou report at bugs.python.org
Mon Mar 21 13:13:32 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

> Yes, the race condition with the timeout is a problem.
> Here is a patch that implements this lock using a condition variable.
> I agree that one must consider performance/simplicity when doing this.

I don't understand why you need something that complicated. A simple
semaphore should be enough (as in the POSIX implementation).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11618>
_______________________________________


More information about the Python-bugs-list mailing list