Message402741
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
--- |
|
| Date |
User |
Action |
Args |
| 2021-09-27 21:24:49 | vstinner | set | recipients:
+ vstinner, paul.moore, tim.golden, zach.ware, eryksun, steve.dower |
| 2021-09-27 21:24:49 | vstinner | set | messageid: <1632777889.72.0.288438744014.issue45301@roundup.psfhosted.org> |
| 2021-09-27 21:24:49 | vstinner | link | issue45301 messages |
| 2021-09-27 21:24:49 | vstinner | create | |
|