1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Enhance implementation of the Win32 thread wait function.

FossilOrigin-Name: 049b04117353c3e163ffc87916cbe121403a2821
This commit is contained in:
mistachkin
2012-07-23 02:00:38 +00:00
parent da0e47109e
commit 572df3b1e4
3 changed files with 11 additions and 8 deletions

View File

@@ -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;
}
/*