mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +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:
@@ -18,7 +18,7 @@
|
||||
** file simultaneously, or one process from reading the database while
|
||||
** another is writing.
|
||||
**
|
||||
** @(#) $Id: pager.c,v 1.243 2006/01/18 16:51:35 danielk1977 Exp $
|
||||
** @(#) $Id: pager.c,v 1.244 2006/01/18 17:25:46 drh Exp $
|
||||
*/
|
||||
#ifndef SQLITE_OMIT_DISKIO
|
||||
#include "sqliteInt.h"
|
||||
@@ -2437,7 +2437,7 @@ int sqlite3pager_release_memory(int nReq){
|
||||
** some of the code invoked by this function may also
|
||||
** try to obtain the mutex, resulting in a deadlock.
|
||||
*/
|
||||
if( sqlite3OsInMutex() ){
|
||||
if( sqlite3OsInMutex(0) ){
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user