diff options
author | mistachkin <mistachkin@noemail.net> | 2012-07-23 02:00:38 +0000 |
---|---|---|
committer | mistachkin <mistachkin@noemail.net> | 2012-07-23 02:00:38 +0000 |
commit | 572df3b1e4a307e2657579658c041f567442f50c (patch) | |
tree | 68946a42689f99ef14f61def416475d416c269b7 /src | |
parent | da0e47109e6ba93ab92023a8e7a9ddd7afa5d8b2 (diff) | |
download | sqlite-572df3b1e4a307e2657579658c041f567442f50c.tar.gz sqlite-572df3b1e4a307e2657579658c041f567442f50c.zip |
Enhance implementation of the Win32 thread wait function.
FossilOrigin-Name: 049b04117353c3e163ffc87916cbe121403a2821
Diffstat (limited to 'src')
-rw-r--r-- | src/os_win.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/os_win.c b/src/os_win.c index d3f967180..75d0edcdd 100644 --- a/src/os_win.c +++ b/src/os_win.c @@ -946,7 +946,10 @@ void sqlite3_win32_sleep(DWORD milliseconds){ } DWORD sqlite3Win32Wait(HANDLE hObject){ - return osWaitForSingleObjectEx(hObject, INFINITE, TRUE); + DWORD rc; + while( (rc = osWaitForSingleObjectEx(hObject, INFINITE, + TRUE))==WAIT_IO_COMPLETION ){} + return rc; } /* |