Antoine Pitrou <pit...@free.fr> added the comment:

> I'm guessing this is because of the perceived performance impact?

The problem is polling is pretty detrimental to power saving on modern CPUs.  
There might also be a performance impact that makes things worse :-)

More generally, we really would like locks to be interruptible under Windows, 
as it would be useful in many more situations than joining threads. 
Unfortunately, as you have discovered we have several lock implementations for 
Windows right now.  The SRWLock one is probably difficult to make 
interruptible, but it's never enabled by default.  The Semaphore one looks 
legacy, so could perhaps be removed.  Remains the condition variable-based 
implementation.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue21822>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to