Index: third_party/sqlite/src/src/test_async.c |
diff --git a/third_party/sqlite/src/src/test_async.c b/third_party/sqlite/src/src/test_async.c |
index 52ed94bf3ae9f648a70165b67ffaa7a5c5e8b39c..c760eea1fa2d6ddbec32497a673ec074c3963f90 100644 |
--- a/third_party/sqlite/src/src/test_async.c |
+++ b/third_party/sqlite/src/src/test_async.c |
@@ -10,8 +10,6 @@ |
** |
************************************************************************* |
** |
-** $Id: test_async.c,v 1.62 2009/04/28 13:01:09 drh Exp $ |
-** |
** This file contains a binding of the asynchronous IO extension interface |
** (defined in ext/async/sqlite3async.h) to Tcl. |
*/ |
@@ -86,6 +84,7 @@ static Tcl_ThreadCreateType tclWriterThread(ClientData pIsStarted){ |
*((int *)pIsStarted) = 1; |
sqlite3async_run(); |
Tcl_MutexUnlock(&testasync_g_writerMutex); |
+ Tcl_ExitThread(0); |
TCL_THREAD_CREATE_RETURN; |
} |
@@ -230,7 +229,7 @@ static int testAsyncControl( |
** of this module. |
*/ |
int Sqlitetestasync_Init(Tcl_Interp *interp){ |
-#if SQLITE_ENABLE_ASYNCIO |
+#ifdef SQLITE_ENABLE_ASYNCIO |
Tcl_CreateObjCommand(interp,"sqlite3async_start",testAsyncStart,0,0); |
Tcl_CreateObjCommand(interp,"sqlite3async_wait",testAsyncWait,0,0); |