aboutsummaryrefslogtreecommitdiff
path: root/src/mutex.c
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2008-06-18 09:45:56 +0000
committerdanielk1977 <danielk1977@noemail.net>2008-06-18 09:45:56 +0000
commit1a9ed0b27a97371d3db4d381f3258071ff5c71e8 (patch)
treef69687413d11a768ebfa587f43759117e396c5f9 /src/mutex.c
parent5f09d3e611f2b88f168d1ce6631d4e4d83a6115c (diff)
downloadsqlite-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.c')
-rw-r--r--src/mutex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mutex.c b/src/mutex.c
index 46bb82d71..a9fe68fa7 100644
--- a/src/mutex.c
+++ b/src/mutex.c
@@ -19,7 +19,7 @@
** implementation is suitable for testing.
** debugging purposes
**
-** $Id: mutex.c,v 1.22 2008/06/17 18:57:49 danielk1977 Exp $
+** $Id: mutex.c,v 1.23 2008/06/18 09:45:56 danielk1977 Exp $
*/
#include "sqliteInt.h"
@@ -237,9 +237,9 @@ static int noopMutexTry(sqlite3_mutex *p){
** is not currently allocated. SQLite will never do either.
*/
static void noopMutexLeave(sqlite3_mutex *p){
- assert( sqlite3_mutex_held(p) );
+ assert( noopMutexHeld(p) );
p->cnt--;
- assert( p->id==SQLITE_MUTEX_RECURSIVE || sqlite3_mutex_notheld(p) );
+ assert( p->id==SQLITE_MUTEX_RECURSIVE || noopMutexNotheld(p) );
}
sqlite3_mutex_methods *sqlite3DefaultMutex(void){