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 vstinner
Recipients eryksun, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2021-09-27.21:24:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1632777889.72.0.288438744014.issue45301@roundup.psfhosted.org>
In-reply-to
Content
Eryk:
> SleepConditionVariableSRW() can't be interrupted in PyCOND_WAIT() and PyCOND_TIMEDWAIT().

Oh. A comment on StackOverlow says:     

"The WaitForXxx functions accept parameters of the generic HANDLE type, which represents a handle to a kernel object. Condition variables are user-mode objects, not kernel objects, so you cannot use them with these functions, since they work only with kernel objects."

https://stackoverflow.com/questions/37522108/can-you-really-wait-on-condition-variable-with-waitfor-objects

I only created this issue because of this comment in pycore_condvar.h:
---
/* non-emulated condition variables are provided for those that want
 * to target Windows Vista.  Modify this macro to enable them.
 */
#ifndef _PY_EMULATED_WIN_CV
#define _PY_EMULATED_WIN_CV 1  /* use emulated condition variables */
#endif
---
History
Date User Action Args
2021-09-27 21:24:49vstinnersetrecipients: + vstinner, paul.moore, tim.golden, zach.ware, eryksun, steve.dower
2021-09-27 21:24:49vstinnersetmessageid: <1632777889.72.0.288438744014.issue45301@roundup.psfhosted.org>
2021-09-27 21:24:49vstinnerlinkissue45301 messages
2021-09-27 21:24:49vstinnercreate