aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2008-06-18 09:45:56 +0000
committerdanielk1977 <danielk1977@noemail.net>2008-06-18 09:45:56 +0000
commit1a9ed0b27a97371d3db4d381f3258071ff5c71e8 (patch)
treef69687413d11a768ebfa587f43759117e396c5f9 /src/main.c
parent5f09d3e611f2b88f168d1ce6631d4e4d83a6115c (diff)
downloadsqlite-1a9ed0b27a97371d3db4d381f3258071ff5c71e8.tar.gz
sqlite-1a9ed0b27a97371d3db4d381f3258071ff5c71e8.zip
Add some test infrastructure and cases for the new mutex api. (CVS 5230)
FossilOrigin-Name: 262baee9952b28afe5dc77eb7365ebb11a480906
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index af2576e45..54b13fa8b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -14,7 +14,7 @@
** other files are for internal use by SQLite and should not be
** accessed by users of the library.
**
-** $Id: main.c,v 1.446 2008/06/17 18:57:49 danielk1977 Exp $
+** $Id: main.c,v 1.447 2008/06/18 09:45:56 danielk1977 Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -156,6 +156,11 @@ int sqlite3_config(int op, ...){
sqlite3Config.mutex = *va_arg(ap, sqlite3_mutex_methods*);
break;
}
+ case SQLITE_CONFIG_GETMUTEX: {
+ /* Retrieve the current mutex implementation */
+ *va_arg(ap, sqlite3_mutex_methods*) = sqlite3Config.mutex;
+ break;
+ }
case SQLITE_CONFIG_MEMSTATUS: {
/* Enable or disable the malloc status collection */
sqlite3Config.bMemstat = va_arg(ap, int);