/ Check-in [f37db3a0]
Login

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

Overview
Comment:Fix the threads build on Windows when SQLITE_MAX_WORKER_THREADS is greater than 0.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | threads
Files: files | file ages | folders
SHA1: f37db3a03d95b508066745613029b7dd1240b31c
User & Date: drh 2014-07-29 15:18:00
Context
2014-07-29
16:37
Make the Win32 thread handles are available after the threads exit. check-in: 565c5af7 user: mistachkin tags: threads
15:18
Fix the threads build on Windows when SQLITE_MAX_WORKER_THREADS is greater than 0. check-in: f37db3a0 user: drh tags: threads
14:16
Merge the R-Tree fix and the new SQLITE_TESTCTRL_ISINIT test control from trunk. check-in: b2f7eb3c user: drh tags: threads
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/threads.c.

   146    146     *ppThread = p;
   147    147     return SQLITE_OK;
   148    148   }
   149    149   
   150    150   /* Wait on an object */
   151    151   DWORD sqlite3Win32Wait(HANDLE hObject){
   152    152     DWORD rc;
   153         -  while( (rc = osWaitForSingleObjectEx(hObject, INFINITE,
          153  +  while( (rc = WaitForSingleObjectEx(hObject, INFINITE,
   154    154                                          TRUE))==WAIT_IO_COMPLETION ){}
   155    155     return rc;
   156    156   }
   157    157   
   158    158   /* Get the results of the thread */
   159    159   int sqlite3ThreadJoin(SQLiteThread *p, void **ppOut){
   160    160     DWORD rc;