]> granicus.if.org Git - python/commitdiff
Replace WaitForMultipleObjects with WaitForMultipleObjectEx,
authorMartin v. Löwis <martin@v.loewis.de>
Fri, 25 Jan 2013 13:29:13 +0000 (14:29 +0100)
committerMartin v. Löwis <martin@v.loewis.de>
Fri, 25 Jan 2013 13:29:13 +0000 (14:29 +0100)
for better WinRT compatibility.

Modules/_multiprocessing/semaphore.c

index bdf56a9f739bcb10d872b5f3b84781b71e365177..dcf3b42bc108e446ad479cd3f865e530a61f4b72 100644 (file)
@@ -118,7 +118,7 @@ semlock_acquire(SemLockObject *self, PyObject *args, PyObject *kwds)
     Py_BEGIN_ALLOW_THREADS
     if (sigint_event != NULL)
         ResetEvent(sigint_event);
-    res = WaitForMultipleObjects(nhandles, handles, FALSE, full_msecs);
+    res = WaitForMultipleObjectsEx(nhandles, handles, FALSE, full_msecs, FALSE);
     Py_END_ALLOW_THREADS
 
     /* handle result */