[issue11618] Locks broken wrt timeouts on Windows
Antoine Pitrou
report at bugs.python.org
Mon Mar 21 13:46:29 CET 2011
Antoine Pitrou <pitrou at free.fr> added the comment:
> I'm just providing this as a fast alternative to the Semaphore, which
> as far as I know, will cause a kernel call every time.
A Semaphore might be "slow", but I'm not sure other primitives are
faster. For the record, I tried another implementation using a critical
section, and it's not significantly faster under a VM (even though MSDN
claims critical sections are fast).
Have you timed your solution?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11618>
_______________________________________
More information about the Python-bugs-list
mailing list