diff options
author | mistachkin <mistachkin@noemail.net> | 2015-07-03 21:38:09 +0000 |
---|---|---|
committer | mistachkin <mistachkin@noemail.net> | 2015-07-03 21:38:09 +0000 |
commit | 93de6538444cd5065ee7a768ff9240043ef15135 (patch) | |
tree | ff7b4c79a3d8f942218eb65e2d13b0151075dd9a /src/os_unix.c | |
parent | 28a10c3c1f28cd6d349762ce9a19759baf9cd1c3 (diff) | |
download | sqlite-93de6538444cd5065ee7a768ff9240043ef15135.tar.gz sqlite-93de6538444cd5065ee7a768ff9240043ef15135.zip |
Add static mutexes for use by the built-in / third-party VFSs and use the built-in VFS mutex where appropriate.
FossilOrigin-Name: b202e2a1d73d104d795d2252b1c6f61d65bfb295
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 9ec100323..d7a94ab09 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -629,14 +629,14 @@ static int robust_open(const char *z, int f, mode_t m){ ** unixEnterLeave() */ static void unixEnterMutex(void){ - sqlite3_mutex_enter(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER)); + sqlite3_mutex_enter(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_VFS1)); } static void unixLeaveMutex(void){ - sqlite3_mutex_leave(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER)); + sqlite3_mutex_leave(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_VFS1)); } #ifdef SQLITE_DEBUG static int unixMutexHeld(void) { - return sqlite3_mutex_held(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER)); + return sqlite3_mutex_held(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_VFS1)); } #endif |