[issue45301] pycore_condvar.h: remove Windows conditonal variable emulation
Eryk Sun
report at bugs.python.org
Mon Sep 27 10:48:59 EDT 2021
Eryk Sun <eryksun at 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 <report at bugs.python.org>
<https://bugs.python.org/issue45301>
_______________________________________
More information about the Python-bugs-list
mailing list