diff options
author | danielk1977 <danielk1977@noemail.net> | 2009-04-24 10:13:05 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2009-04-24 10:13:05 +0000 |
commit | 4598b8e4a102f2d38e90483758681a1f3379878a (patch) | |
tree | 81c8dc18341fe2ef228197b2a1f2998ffb0512b0 /src/test_async.c | |
parent | debcfd2dcb2f2f628dde7b1ae0a1c5359e7df610 (diff) | |
download | sqlite-4598b8e4a102f2d38e90483758681a1f3379878a.tar.gz sqlite-4598b8e4a102f2d38e90483758681a1f3379878a.zip |
Make selecting the asynchronous IO file-locking mode a runtime operation. Still untested. (CVS 6544)
FossilOrigin-Name: 577277e84a05707b8c21aa08bc5fc314c1ac38ac
Diffstat (limited to 'src/test_async.c')
-rw-r--r-- | src/test_async.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/test_async.c b/src/test_async.c index 7e0107a7a..8787d4c22 100644 --- a/src/test_async.c +++ b/src/test_async.c @@ -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; } |