1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Add some test infrastructure and cases for the new mutex api. (CVS 5230)

FossilOrigin-Name: 262baee9952b28afe5dc77eb7365ebb11a480906
This commit is contained in:
danielk1977
2008-06-18 09:45:56 +00:00
parent 5f09d3e611
commit 1a9ed0b27a
10 changed files with 388 additions and 22 deletions

View File

@@ -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);