diff options
author | drh <drh@noemail.net> | 2008-10-07 15:25:48 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-10-07 15:25:48 +0000 |
commit | 18472fa7b80fffe589ac558e25d84b3969a70e70 (patch) | |
tree | 1dda54476935c3056b2946b3a7e77e32c4c4a2cf /src/test_config.c | |
parent | 3d9cf5177f663bfa87736745f4eb8b93bc883d8a (diff) | |
download | sqlite-18472fa7b80fffe589ac558e25d84b3969a70e70.tar.gz sqlite-18472fa7b80fffe589ac558e25d84b3969a70e70.zip |
Remove the SQLITE_MUTEX_APPDEF compile-time option. The SQLITE_THREADSAFE=0
option always removes all mutex code. For application-defined mutexes only,
use SQLITE_THREADSAFE=1 with SQLITE_MUTEX_NOOP=1. Ticket #3421. (CVS 5779)
FossilOrigin-Name: 02a12eb1cfe9307c66556105a1a99d657cc01ab5
Diffstat (limited to 'src/test_config.c')
-rw-r--r-- | src/test_config.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/test_config.c b/src/test_config.c index aa4487d4b..4fa74af69 100644 --- a/src/test_config.c +++ b/src/test_config.c @@ -16,7 +16,7 @@ ** The focus of this file is providing the TCL testing layer ** access to compile-time constants. ** -** $Id: test_config.c,v 1.37 2008/09/23 10:16:05 drh Exp $ +** $Id: test_config.c,v 1.38 2008/10/07 15:25:49 drh Exp $ */ #include "sqliteLimit.h" @@ -87,6 +87,12 @@ static void set_options(Tcl_Interp *interp){ Tcl_SetVar2(interp, "sqlite_options", "mem5", "0", TCL_GLOBAL_ONLY); #endif +#ifdef SQLITE_MUTEX_OMIT + Tcl_SetVar2(interp, "sqlite_options", "mutex", "0", TCL_GLOBAL_ONLY); +#else + Tcl_SetVar2(interp, "sqlite_options", "mutex", "1", TCL_GLOBAL_ONLY); +#endif + #ifdef SQLITE_OMIT_ALTERTABLE Tcl_SetVar2(interp, "sqlite_options", "altertable", "0", TCL_GLOBAL_ONLY); #else |