Skip to content

Commit

Permalink
Before calling Tcl_ExitThread() in a multi-threaded test, call Tcl_Do…
Browse files Browse the repository at this point in the history
…OneEvent() as many times as necessary to handle any queued events.
  • Loading branch information
Unknown committed Jul 6, 2010
1 parent 5854d27 commit d73fa8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/test_thread.c
Expand Up @@ -150,6 +150,7 @@ static Tcl_ThreadCreateType tclScriptThread(ClientData pSqlThread){
Tcl_DecrRefCount(pList);
Tcl_DecrRefCount(pRes);
Tcl_DeleteInterp(interp);
while( Tcl_DoOneEvent(TCL_ALL_EVENTS|TCL_DONT_WAIT) );
Tcl_ExitThread(0);
TCL_THREAD_CREATE_RETURN;
}
Expand Down

0 comments on commit d73fa8e

Please sign in to comment.