This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients eryksun, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2021-09-27.14:48:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1632754139.18.0.867485566569.issue45301@roundup.psfhosted.org>
In-reply-to
Content
>  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.
History
Date User Action Args
2021-09-27 14:48:59eryksunsetrecipients: + eryksun, paul.moore, vstinner, tim.golden, zach.ware, steve.dower
2021-09-27 14:48:59eryksunsetmessageid: <1632754139.18.0.867485566569.issue45301@roundup.psfhosted.org>
2021-09-27 14:48:59eryksunlinkissue45301 messages
2021-09-27 14:48:59eryksuncreate