Eryk Sun <eryk...@gmail.com> added the comment:

>  IMO it's time to remove _PY_EMULATED_WIN_CV code path from 
> pycore_condvar.h.

SleepConditionVariableSRW() can't be interrupted in PyCOND_WAIT() and 
PyCOND_TIMEDWAIT(). Maybe a hybrid solution could be adopted. Use native 
condition variables for the GIL, where performance matters and the ability to 
interrupt the wait doesn't matter. Otherwise use the semaphore implementation, 
for which the wait implementation can be modified to use 
WaitForMultipleObjects(), and include the Ctrl+C event.

----------
nosy: +eryksun

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

Reply via email to