/ 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 Unified Diffs Show Whitespace Changes Patch

Changes to src/threads.c.

146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
  *ppThread = p;
  return SQLITE_OK;
}

/* Wait on an object */
DWORD sqlite3Win32Wait(HANDLE hObject){
  DWORD rc;
  while( (rc = osWaitForSingleObjectEx(hObject, INFINITE,
                                       TRUE))==WAIT_IO_COMPLETION ){}
  return rc;
}

/* Get the results of the thread */
int sqlite3ThreadJoin(SQLiteThread *p, void **ppOut){
  DWORD rc;







|







146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
  *ppThread = p;
  return SQLITE_OK;
}

/* Wait on an object */
DWORD sqlite3Win32Wait(HANDLE hObject){
  DWORD rc;
  while( (rc = WaitForSingleObjectEx(hObject, INFINITE,
                                       TRUE))==WAIT_IO_COMPLETION ){}
  return rc;
}

/* Get the results of the thread */
int sqlite3ThreadJoin(SQLiteThread *p, void **ppOut){
  DWORD rc;