1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-09 14:21:03 +03:00

Modify the sqlite3OsInMutex os-layer interface to take a single parameter

to distinguish between mutexes held by the current thread and mutexes held
by any thread.  Part of the fix for ticket #1630. (CVS 2973)

FossilOrigin-Name: e1ad9df1cf46287f2a7789275e98d28e05880e17
This commit is contained in:
drh
2006-01-18 17:25:45 +00:00
parent 9e12800dec
commit 757b04ed36
7 changed files with 45 additions and 32 deletions

View File

@@ -14,7 +14,7 @@
** This file contains functions for allocating memory, comparing
** strings, and stuff like that.
**
** $Id: util.c,v 1.176 2006/01/18 16:51:36 danielk1977 Exp $
** $Id: util.c,v 1.177 2006/01/18 17:25:46 drh Exp $
*/
#include "sqliteInt.h"
#include "os.h"
@@ -1373,7 +1373,7 @@ int sqlite3ApiExit(sqlite3* db, int rc){
** to sqlite3ApiExit(), or false otherwise.
*/
int sqlite3MallocFailed(){
return (mallocHasFailed && sqlite3OsInMutex());
return (mallocHasFailed && sqlite3OsInMutex(1));
}
/*