diff options
author | danielk1977 <danielk1977@noemail.net> | 2008-06-18 09:45:56 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2008-06-18 09:45:56 +0000 |
commit | 1a9ed0b27a97371d3db4d381f3258071ff5c71e8 (patch) | |
tree | f69687413d11a768ebfa587f43759117e396c5f9 /src/mutex_unix.c | |
parent | 5f09d3e611f2b88f168d1ce6631d4e4d83a6115c (diff) | |
download | sqlite-1a9ed0b27a97371d3db4d381f3258071ff5c71e8.tar.gz sqlite-1a9ed0b27a97371d3db4d381f3258071ff5c71e8.zip |
Add some test infrastructure and cases for the new mutex api. (CVS 5230)
FossilOrigin-Name: 262baee9952b28afe5dc77eb7365ebb11a480906
Diffstat (limited to 'src/mutex_unix.c')
-rw-r--r-- | src/mutex_unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mutex_unix.c b/src/mutex_unix.c index 2ec52a1a9..7b5ca7616 100644 --- a/src/mutex_unix.c +++ b/src/mutex_unix.c @@ -11,7 +11,7 @@ ************************************************************************* ** This file contains the C functions that implement mutexes for pthreads ** -** $Id: mutex_unix.c,v 1.9 2008/06/17 17:21:18 danielk1977 Exp $ +** $Id: mutex_unix.c,v 1.10 2008/06/18 09:45:56 danielk1977 Exp $ */ #include "sqliteInt.h" @@ -285,7 +285,7 @@ static int pthreadMutexTry(sqlite3_mutex *p){ ** is not currently allocated. SQLite will never do either. */ static void pthreadMutexLeave(sqlite3_mutex *p){ - assert( sqlite3_mutex_held(p) ); + assert( pthreadMutexHeld(p) ); p->nRef--; assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE ); |