Replace WaitForSingleObject with WaitForSingleObjectEx,

for better WinRT compatibility.
This commit is contained in:
Martin v. Löwis 2013-01-25 14:25:48 +01:00
parent 3f50bf652b
commit b26a9b10ea
6 changed files with 7 additions and 7 deletions

View file

@ -242,7 +242,7 @@ _PyCOND_WAIT_MS(PyCOND_T *cv, PyMUTEX_T *cs, DWORD ms)
* but we are safe because we are using a semaphore wich has an internal
* count.
*/
wait = WaitForSingleObject(cv->sem, ms);
wait = WaitForSingleObjectEx(cv->sem, ms, FALSE);
PyMUTEX_LOCK(cs);
if (wait != WAIT_OBJECT_0)
--cv->waiting;

View file

@ -130,7 +130,7 @@ FreeNonRecursiveMutex(PNRMUTEX mutex)
DWORD
EnterNonRecursiveMutex(PNRMUTEX mutex, DWORD milliseconds)
{
return WaitForSingleObject(mutex, milliseconds);
return WaitForSingleObjectEx(mutex, milliseconds, FALSE);
}
BOOL