/ Check-in [049b0411]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Enhance implementation of the Win32 thread wait function.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | threads
Files: files | file ages | folders
SHA1: 049b04117353c3e163ffc87916cbe121403a2821
User & Date: mistachkin 2012-07-23 02:00:38
Context
2012-07-23
06:47
Add an assert() to help verify the return code from the Win32 thread wait function. check-in: ed3dc7a8 user: mistachkin tags: threads
02:00
Enhance implementation of the Win32 thread wait function. check-in: 049b0411 user: mistachkin tags: threads
2012-07-21
22:49
Add Win32 support to the internal threads interface. Also, add several asserts and fix a few typos. check-in: 793195d3 user: mistachkin tags: threads
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_win.c.

   942    942     osWaitForSingleObjectEx(sleepObj, milliseconds, FALSE);
   943    943   #else
   944    944     osSleep(milliseconds);
   945    945   #endif
   946    946   }
   947    947   
   948    948   DWORD sqlite3Win32Wait(HANDLE hObject){
   949         -  return osWaitForSingleObjectEx(hObject, INFINITE, TRUE);
          949  +  DWORD rc;
          950  +  while( (rc = osWaitForSingleObjectEx(hObject, INFINITE,
          951  +                                       TRUE))==WAIT_IO_COMPLETION ){}
          952  +  return rc;
   950    953   }
   951    954   
   952    955   /*
   953    956   ** Return true (non-zero) if we are running under WinNT, Win2K, WinXP,
   954    957   ** or WinCE.  Return false (zero) for Win95, Win98, or WinME.
   955    958   **
   956    959   ** Here is an interesting observation:  Win95, Win98, and WinME lack