diff options
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index ab0d2c7b6..de7f0729c 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -1587,6 +1587,16 @@ static void unixLeaveMutex(){ } /* +** Return TRUE if we are currently within the mutex and FALSE if not. +** This routine is intended for sanity checking only. It is designed +** for use in an assert() to verify that the mutex is held or not held +** in certain routines. +*/ +static int unixInMutex(){ + return inMutex; +} + +/* ** This function is called automatically when a thread exists to delete ** the threads SqliteTsd structure. ** @@ -1706,6 +1716,7 @@ struct sqlite3OsVtbl sqlite3Os = { unixCurrentTime, unixEnterMutex, unixLeaveMutex, + unixInMutex, unixThreadSpecificData, genericMalloc, genericRealloc, |