1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Add an assert() to help verify the return code from the Win32 thread wait function.

FossilOrigin-Name: ed3dc7a89f3416622fcd741ae5fba437929d06d6
This commit is contained in:
mistachkin
2012-07-23 06:47:30 +00:00
parent 572df3b1e4
commit a806475f86
3 changed files with 8 additions and 7 deletions

View File

@@ -132,6 +132,7 @@ int sqlite3ThreadJoin(SQLiteThread *p, void **ppOut){
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;