diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2013-01-25 13:25:48 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2013-01-25 13:25:48 (GMT) |
commit | b26a9b10ea5f095da0c699e41b29a724021cd09a (patch) | |
tree | 16bc11c938232612a40e511950e5f2b5843563c7 /Python | |
parent | 3f50bf652bae5e3371972eb261973238c62cc17b (diff) | |
download | cpython-b26a9b10ea5f095da0c699e41b29a724021cd09a.zip cpython-b26a9b10ea5f095da0c699e41b29a724021cd09a.tar.gz cpython-b26a9b10ea5f095da0c699e41b29a724021cd09a.tar.bz2 |
Replace WaitForSingleObject with WaitForSingleObjectEx,
for better WinRT compatibility.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/condvar.h | 2 | ||||
-rw-r--r-- | Python/thread_nt.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Python/condvar.h b/Python/condvar.h index fe6bd74..72b08f9 100644 --- a/Python/condvar.h +++ b/Python/condvar.h @@ -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; diff --git a/Python/thread_nt.h b/Python/thread_nt.h index 938bf1e..bd604fb 100644 --- a/Python/thread_nt.h +++ b/Python/thread_nt.h @@ -130,7 +130,7 @@ FreeNonRecursiveMutex(PNRMUTEX mutex) DWORD EnterNonRecursiveMutex(PNRMUTEX mutex, DWORD milliseconds) { - return WaitForSingleObject(mutex, milliseconds); + return WaitForSingleObjectEx(mutex, milliseconds, FALSE); } BOOL |