/ Check-in [ed3dc7a8]
Login

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

Overview
Comment:Add an assert() to help verify the return code from the Win32 thread wait function.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | threads
Files: files | file ages | folders
SHA1:ed3dc7a89f3416622fcd741ae5fba437929d06d6
User & Date: mistachkin 2012-07-23 06:47:30
Context
2012-08-16
11:24
Update the threads branch to include all the latest trunk changes. check-in: f4125771 user: drh tags: threads
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
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/threads.c.

128
129
130
131
132
133
134

135
136
137
138
139
140
141
/* Get the results of the thread */
int sqlite3ThreadJoin(SQLiteThread *p, void **ppOut){
  DWORD rc;

  assert( ppOut!=0 );
  if( p==0 ) return SQLITE_NOMEM;
  rc = sqlite3Win32Wait((HANDLE)p->tid);

  if( rc==WAIT_OBJECT_0 ) *ppOut = p->pResult;
  sqlite3_free(p);
  return (rc==WAIT_OBJECT_0) ? SQLITE_OK : SQLITE_ERROR;
}

#endif /* SQLITE_OS_WIN && !SQLITE_OS_WINRT */
/******************************** End Win32 Threads *************************/







>







128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
/* Get the results of the thread */
int sqlite3ThreadJoin(SQLiteThread *p, void **ppOut){
  DWORD rc;

  assert( ppOut!=0 );
  if( p==0 ) return SQLITE_NOMEM;
  rc = sqlite3Win32Wait((HANDLE)p->tid);
  assert( rc!=WAIT_IO_COMPLETION );
  if( rc==WAIT_OBJECT_0 ) *ppOut = p->pResult;
  sqlite3_free(p);
  return (rc==WAIT_OBJECT_0) ? SQLITE_OK : SQLITE_ERROR;
}

#endif /* SQLITE_OS_WIN && !SQLITE_OS_WINRT */
/******************************** End Win32 Threads *************************/