mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-14 00:22:38 +03:00
Make selecting the asynchronous IO file-locking mode a runtime operation. Still untested. (CVS 6544)
FossilOrigin-Name: 577277e84a05707b8c21aa08bc5fc314c1ac38ac
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
**
|
||||
*************************************************************************
|
||||
**
|
||||
** $Id: test_async.c,v 1.59 2009/04/23 14:58:40 danielk1977 Exp $
|
||||
** $Id: test_async.c,v 1.60 2009/04/24 10:13:06 danielk1977 Exp $
|
||||
**
|
||||
** This file contains a binding of the asynchronous IO extension interface
|
||||
** (defined in ext/async/sqlite3async.h) to Tcl.
|
||||
@@ -160,13 +160,11 @@ static int testAsyncStart(
|
||||
|
||||
rc = Tcl_CreateThread(&x, tclWriterThread, threadData, nStack, flags);
|
||||
if( rc!=TCL_OK ){
|
||||
Tcl_AppendResult(interp, "Tcl_CreateThread() failed", 0);
|
||||
return TCL_ERROR;
|
||||
}
|
||||
while( isStarted==0 ){
|
||||
#if 0
|
||||
sched_yield();
|
||||
#endif
|
||||
}
|
||||
|
||||
while( isStarted==0 ) { /* Busy loop */ }
|
||||
return TCL_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user