[issue15038] Optimize python Locks on Windows
Kristján Valur Jónsson
report at bugs.python.org
Tue Jun 19 17:51:36 CEST 2012
Kristján Valur Jónsson <kristjan at ccpgames.com> added the comment:
It's an interesting article Richard, but I don't see how their 2nd attempt solves the probvlem. All it does is block the thread doing the Signal(), not other threads, from stealing the wakeup.
I think I know how to fix this correctly, using a separate internal "locking" condition variable. I will make some offline experiments with that, to see if it makes sense, given the added complexity. In the mean time, I will document this issue and add the link to the article you mentioned.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list