]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Make the default threading mode multithread (-nomutex) in the TCL interface. (CVS...
authordrh <drh@noemail.net>
Wed, 3 Sep 2008 01:08:00 +0000 (01:08 +0000)
committerdrh <drh@noemail.net>
Wed, 3 Sep 2008 01:08:00 +0000 (01:08 +0000)
FossilOrigin-Name: d9e826942673ad048d611c014bfbee39ab5535c8

manifest
manifest.uuid
src/tclsqlite.c
test/mutex1.test
test/permutations.test

index 6b4b05f7ea719f95a578b9b6374d641b487e96de..34802db204b99f8f274d8f5d30a37e66db7c0f95 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Add\ssupport\sfor\sSQLITE_OPEN_FULLMUTEX.\s(CVS\s5669)
-D 2008-09-03T00:43:15
+C Make\sthe\sdefault\sthreading\smode\smultithread\s(-nomutex)\sin\sthe\sTCL\sinterface.\s(CVS\s5670)
+D 2008-09-03T01:08:01
 F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
 F Makefile.in 689e14735f862a5553bceef206d8c13e29504e44
 F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@@ -153,7 +153,7 @@ F src/sqliteInt.h 4e81ab61bc9a942f0dafdb8c2cec7825f6eba2f5
 F src/sqliteLimit.h f435e728c6b620ef7312814d660a81f9356eb5c8
 F src/status.c 237b193efae0cf6ac3f0817a208de6c6c6ef6d76
 F src/table.c 22744786199c9195720c15a7a42cb97b2e2728d8
-F src/tclsqlite.c f431fe065a024e80b32a4691bab73beaccda024e
+F src/tclsqlite.c 7f5c49f4347c197e869fef86b35b2251ca45f7c2
 F src/test1.c 349606445a5a938e9fa9b5e410413632c6c25f87
 F src/test2.c eaa77124786649eedf47d3c5e94d8070c0da228f
 F src/test3.c e85b7ce5c28c3ce7fbdbf7f98e1467b19786c62b
@@ -436,7 +436,7 @@ F test/misc5.test 6a5c1e3217a95b0db05ff9a0f1ecb5ce9043ffef
 F test/misc6.test 953cc693924d88e6117aeba16f46f0bf5abede91
 F test/misc7.test 0d763f703a34521e55ab30145b747aafa0e5f794
 F test/misuse.test 30b3a458e5a70c31e74c291937b6c82204c59f33
-F test/mutex1.test 342dd695567d307126e8f67f243e9b2bcd17898e
+F test/mutex1.test dbcf556502389abcca65a80af45b80c141714ccc
 F test/mutex2.test 56f282f436596e9febdc6e0db2c507432b6724bb
 F test/nan.test 14c41572ff52dbc740b1c3303dd313a90dc6084c
 F test/notnull.test 44d600f916b770def8b095a9962dbe3be5a70d82
@@ -448,7 +448,7 @@ F test/pager3.test 2323bf27fd5bd887b580247e5bce500ceee994b4
 F test/pageropt.test 3ee6578891baaca967f0bd349e4abfa736229e1a
 F test/pagesize.test 0d9ff3fedfce6e5ffe8fa7aca9b6d3433a2e843b
 F test/pcache.test a0fc9e965d039c4de24f9af929f9a25eb8be8539
-F test/permutations.test b3dc25ef805a940e23b7e1a8189cc8a06f21ca0a
+F test/permutations.test cf196f6adddb52d423ebf408dd6ad73d9da8575e
 F test/pragma.test 4461cb1004084b907dd28f9d517af7bcf8f5b35f
 F test/pragma2.test 5364893491b9231dd170e3459bfc2e2342658b47
 F test/printf.test 262a5acd3158f788e9bdf7f18d718f3af32ff6ef
@@ -630,7 +630,7 @@ F tool/speedtest16.c c8a9c793df96db7e4933f0852abb7a03d48f2e81
 F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
 F tool/speedtest8.c 1dbced29de5f59ba2ebf877edcadf171540374d1
 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
-P c8b24bd1be94b6d385e759a2f9e202be066578a0
-R 40631eb64a3c216515d7d10a0d831308
+P f2f361a5e2fb81fb0f99e83ecf8bae9a750723b1
+R 705577649ea0352c58c4fc8568a84665
 U drh
-Z 44c1ecf2f51b2cc145c32f8106994277
+Z 89560b732b51adcb2b255247e55584a1
index 1eef2df6e557c292dfcd6235ecd9b67a2464d181..f74c55a6e2b392acc7a03821a6178787ee6a4405 100644 (file)
@@ -1 +1 @@
-f2f361a5e2fb81fb0f99e83ecf8bae9a750723b1
\ No newline at end of file
+d9e826942673ad048d611c014bfbee39ab5535c8
\ No newline at end of file
index c83fd201459dedca35330c3098d6855f2e376e31..083b31c2901220ec2b4b475ec5f3f79a607421ee 100644 (file)
@@ -12,7 +12,7 @@
 ** A TCL Interface to SQLite.  Append this file to sqlite3.c and
 ** compile the whole thing to build a TCL-enabled version of SQLite.
 **
-** $Id: tclsqlite.c,v 1.222 2008/09/03 00:43:15 drh Exp $
+** $Id: tclsqlite.c,v 1.223 2008/09/03 01:08:01 drh Exp $
 */
 #include "tcl.h"
 #include <errno.h>
@@ -2327,7 +2327,7 @@ static int DbMain(void *cd, Tcl_Interp *interp, int objc,Tcl_Obj *const*objv){
   int i;
   const char *zFile;
   const char *zVfs = 0;
-  int flags = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE;
+  int flags = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_NOMUTEX;
   Tcl_DString translatedFilename;
   if( objc==2 ){
     zArg = Tcl_GetStringFromObj(objv[1], 0);
index 8637e08be3a13b40fd2ba6143d41e81726396775..a1db9f282cab4c6e5c234501777c43ef4db8e079 100644 (file)
@@ -9,7 +9,7 @@
 #
 #***********************************************************************
 #
-# $Id: mutex1.test,v 1.13 2008/08/22 16:22:17 danielk1977 Exp $
+# $Id: mutex1.test,v 1.14 2008/09/03 01:08:02 drh Exp $
 
 set testdir [file dirname $argv0]
 source $testdir/tester.tcl
@@ -97,7 +97,7 @@ ifcapable threadsafe {
   foreach {mode mutexes} {
     singlethread {}
     multithread  {fast static_lru static_master static_mem static_prng }
-    serialized   {fast recursive static_lru static_master static_mem static_prng }
+    serialized  {fast recursive static_lru static_master static_mem static_prng}
   } {
 
     do_test mutex1.2.$mode.1 {
@@ -109,7 +109,7 @@ ifcapable threadsafe {
     do_test mutex1.2.$mode.2 {
       sqlite3_initialize
       clear_mutex_counters
-      sqlite3 db test.db
+      sqlite3 db test.db -nomutex 0
       catchsql { CREATE TABLE abc(a, b, c) }
       db eval {
         INSERT INTO abc VALUES(1, 2, 3);
index 95f2a17b331e3cafbcdd607bf6a4c2f06ccfd329..5b33c307e05c791f78db2fb4bd8ec7d0ebdc7ab4 100644 (file)
@@ -9,7 +9,7 @@
 #
 #***********************************************************************
 #
-# $Id: permutations.test,v 1.28 2008/09/03 00:43:15 drh Exp $
+# $Id: permutations.test,v 1.29 2008/09/03 01:08:02 drh Exp $
 
 set testdir [file dirname $argv0]
 source $testdir/tester.tcl
@@ -271,7 +271,7 @@ run_tests "nomutex" -description {
   rename sqlite3 sqlite3_nomutex
   proc sqlite3 {args} {
     if {[string range [lindex $args 0] 0 0] ne "-"} {
-      lappend args -nomutex 1
+      lappend args -fullmutex 0 -nomutex 1
     }
     uplevel [concat sqlite3_nomutex $args]
   }
@@ -314,7 +314,7 @@ run_tests "fullmutex" -description {
   rename sqlite3 sqlite3_fullmutex
   proc sqlite3 {args} {
     if {[string range [lindex $args 0] 0 0] ne "-"} {
-      lappend args -fullmutex 1
+      lappend args -nomutex 0 -fullmutex 1
     }
     uplevel [concat sqlite3_fullmutex $args]
   }