Mercurial > cpython-lru_cache-weakref
diff Python/condvar.h @ 81712:b71b6517af63
Replace WaitForSingleObject with WaitForSingleObjectEx,
for better WinRT compatibility.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Fri, 25 Jan 2013 14:25:48 +0100 |
| parents | d7a72fdcc168 |
| children | 08b87dda6f6a |
line wrap: on
line diff
--- a/Python/condvar.h Fri Jan 25 14:06:18 2013 +0100 +++ b/Python/condvar.h Fri Jan 25 14:25:48 2013 +0100 @@ -242,7 +242,7 @@ * 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;
