1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-15 11:41:13 +03:00

Add the sqlite3_db_mutex() interface. No test cases yet. (CVS 5859)

FossilOrigin-Name: d95de32e8ded397adeef8f7a29b87bc85669ac95
This commit is contained in:
drh
2008-11-04 13:46:27 +00:00
parent 3e0a3c9df4
commit 4413d0e976
4 changed files with 28 additions and 10 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.509 2008/10/30 15:03:16 drh Exp $
** $Id: main.c,v 1.510 2008/11/04 13:46:28 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -415,6 +415,13 @@ static int setupLookaside(sqlite3 *db, void *pBuf, int sz, int cnt){
return SQLITE_OK;
}
/*
** Return the mutex associated with a database connection.
*/
sqlite3_mutex *sqlite3_db_mutex(sqlite3 *db){
return db->mutex;
}
/*
** Configuration settings for an individual database connection
*/