diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2013-01-25 14:25:48 +0100 |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2013-01-25 14:25:48 +0100 |
| commit | b26a9b10ea5f095da0c699e41b29a724021cd09a (patch) | |
| tree | 16bc11c938232612a40e511950e5f2b5843563c7 /Modules/timemodule.c | |
| parent | 3f50bf652bae5e3371972eb261973238c62cc17b (diff) | |
| download | cpython-git-b26a9b10ea5f095da0c699e41b29a724021cd09a.tar.gz | |
Replace WaitForSingleObject with WaitForSingleObjectEx,
for better WinRT compatibility.
Diffstat (limited to 'Modules/timemodule.c')
| -rw-r--r-- | Modules/timemodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c index 8a81c8cf1e..d5ffdcccba 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -1574,7 +1574,7 @@ floatsleep(double secs) DWORD rc; HANDLE hInterruptEvent = _PyOS_SigintEvent(); ResetEvent(hInterruptEvent); - rc = WaitForSingleObject(hInterruptEvent, ul_millis); + rc = WaitForSingleObjectEx(hInterruptEvent, ul_millis, FALSE); if (rc == WAIT_OBJECT_0) { Py_BLOCK_THREADS errno = EINTR; |
