From: Martin v. Löwis Date: Fri, 25 Jan 2013 13:29:13 +0000 (+0100) Subject: Replace WaitForMultipleObjects with WaitForMultipleObjectEx, X-Git-Tag: v3.4.0a1~1535 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c8c6563097b3a05e372e1f1b1527135ecce69812;p=thirdparty%2FPython%2Fcpython.git Replace WaitForMultipleObjects with WaitForMultipleObjectEx, for better WinRT compatibility. --- diff --git a/Modules/_multiprocessing/semaphore.c b/Modules/_multiprocessing/semaphore.c index bdf56a9f739b..dcf3b42bc108 100644 --- a/Modules/_multiprocessing/semaphore.c +++ b/Modules/_multiprocessing/semaphore.c @@ -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 */