1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Add static mutexes for use by the built-in / third-party VFSs and use the built-in VFS mutex where appropriate.

FossilOrigin-Name: b202e2a1d73d104d795d2252b1c6f61d65bfb295
This commit is contained in:
mistachkin
2015-07-03 21:38:09 +00:00
parent 28a10c3c1f
commit 93de653844
8 changed files with 35 additions and 20 deletions

View File

@@ -107,7 +107,7 @@ static int debugMutexEnd(void){ return SQLITE_OK; }
** that means that a mutex could not be allocated.
*/
static sqlite3_mutex *debugMutexAlloc(int id){
static sqlite3_debug_mutex aStatic[SQLITE_MUTEX_STATIC_APP3 - 1];
static sqlite3_debug_mutex aStatic[SQLITE_MUTEX_STATIC_VFS3 - 1];
sqlite3_debug_mutex *pNew = 0;
switch( id ){
case SQLITE_MUTEX_FAST: