[issue11618] Locks broken wrt timeouts on Windows
Kristján Valur Jónsson
report at bugs.python.org
Wed May 2 22:12:40 CEST 2012
Kristján Valur Jónsson <kristjan at ccpgames.com> added the comment:
Again, to clarify because this seems to have been put to sleep by Martin's unfortunate dismissal. A recap of the patch:
1) Extract the Contition Variable functions on windows out of ceval_gil.h and into thread_nt_cv.h, so that they can be used in more places.
2) Implement the "Lock" primitive in Python using CritialSection and condition variables, rather than windows Mutexes. This gives a large performance boost on uncontended locks.
3) Provide an alternate implementation of the Condition Variable for a build target of Vista/Server 2008, using the native contidion variable objects available for that platform.
I think Martin got distraught by 3) and though that was the only thing this patch is about. The important part is 1) and 2) whereas 3) is provided as a bonus (and to make sure that 1) is future-safe)
So, can we get this reviewed please?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11618>
_______________________________________
More information about the Python-bugs-list
mailing list