aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2010-09-02 17:15:19 +0000
committerdrh <drh@noemail.net>2010-09-02 17:15:19 +0000
commit1ff6e3ab899ed014860e69c2dca5a9ea3ade6d2c (patch)
treecc985c51df965f20bf83ce7197fe1800e1c5e9d6 /src
parentaac1bf94979d822c1a1c0ad09e0e665eff0c340a (diff)
downloadsqlite-1ff6e3ab899ed014860e69c2dca5a9ea3ade6d2c.tar.gz
sqlite-1ff6e3ab899ed014860e69c2dca5a9ea3ade6d2c.zip
Use sqlite3_mutex_notheld() instead of !sqlite3_mutex_held() inside
of assert() statements since the former works when mutexing is disabled while the latter does not. FossilOrigin-Name: 2211486b69cf53f5efb1334aff8b403b26596102
Diffstat (limited to 'src')
-rw-r--r--src/malloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/malloc.c b/src/malloc.c
index f6f75565f..b8d47ad85 100644
--- a/src/malloc.c
+++ b/src/malloc.c
@@ -365,7 +365,7 @@ void *sqlite3ScratchMalloc(int n){
}
sqlite3MemdebugSetType(p, MEMTYPE_SCRATCH);
}
- assert( !sqlite3_mutex_held(mem0.mutex) );
+ assert( sqlite3_mutex_notheld(mem0.mutex) );
#if SQLITE_THREADSAFE==0 && !defined(NDEBUG)