Skip to content

Commit 24f2cf9

Browse files
committed
Replace WaitForMultipleObjects with WaitForMultipleObjectEx,
for better WinRT compatibility.
1 parent e75602e commit 24f2cf9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_multiprocessing/semaphore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ semlock_acquire(SemLockObject *self, PyObject *args, PyObject *kwds)
118118
Py_BEGIN_ALLOW_THREADS
119119
if (sigint_event != NULL)
120120
ResetEvent(sigint_event);
121-
res = WaitForMultipleObjects(nhandles, handles, FALSE, full_msecs);
121+
res = WaitForMultipleObjectsEx(nhandles, handles, FALSE, full_msecs, FALSE);
122122
Py_END_ALLOW_THREADS
123123

124124
/* handle result */

0 commit comments

Comments
 (0)