Lines Matching refs:sqlite3_mutex

1504 ** The mutex module within SQLite defines [sqlite3_mutex] to be an
1506 ** at the internal representation of an [sqlite3_mutex]. It only
1507 ** deals with pointers to the [sqlite3_mutex] object.
1511 typedef struct sqlite3_mutex sqlite3_mutex;
6343 SQLITE_API sqlite3_mutex *sqlite3_mutex_alloc(int);
6344 SQLITE_API void sqlite3_mutex_free(sqlite3_mutex*);
6345 SQLITE_API void sqlite3_mutex_enter(sqlite3_mutex*);
6346 SQLITE_API int sqlite3_mutex_try(sqlite3_mutex*);
6347 SQLITE_API void sqlite3_mutex_leave(sqlite3_mutex*);
6418 sqlite3_mutex *(*xMutexAlloc)(int);
6419 void (*xMutexFree)(sqlite3_mutex *);
6420 void (*xMutexEnter)(sqlite3_mutex *);
6421 int (*xMutexTry)(sqlite3_mutex *);
6422 void (*xMutexLeave)(sqlite3_mutex *);
6423 int (*xMutexHeld)(sqlite3_mutex *);
6424 int (*xMutexNotheld)(sqlite3_mutex *);
6457 SQLITE_API int sqlite3_mutex_held(sqlite3_mutex*);
6458 SQLITE_API int sqlite3_mutex_notheld(sqlite3_mutex*);
6485 ** ^This interface returns a pointer the [sqlite3_mutex] object that
6491 SQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3*);
9891 #define sqlite3_mutex_alloc(X) ((sqlite3_mutex*)8)
9898 #define sqlite3MutexAlloc(X) ((sqlite3_mutex*)8)
10037 sqlite3_mutex *mutex; /* Connection mutex */
11733 sqlite3_mutex *pInitMutex; /* Mutex used by sqlite3_initialize() */
11900 SQLITE_PRIVATE sqlite3_mutex *sqlite3MutexAlloc(int);
14400 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER);
15395 sqlite3_mutex *mutex;
15439 MUTEX_LOGIC(sqlite3_mutex *mutex;)
15464 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER);
15990 sqlite3_mutex *mutex;
16549 sqlite3_mutex *mutex;
17225 sqlite3_mutex *mutex;
17787 SQLITE_API sqlite3_mutex *sqlite3_mutex_alloc(int id){
17794 SQLITE_PRIVATE sqlite3_mutex *sqlite3MutexAlloc(int id){
17805 SQLITE_API void sqlite3_mutex_free(sqlite3_mutex *p){
17815 SQLITE_API void sqlite3_mutex_enter(sqlite3_mutex *p){
17825 SQLITE_API int sqlite3_mutex_try(sqlite3_mutex *p){
17839 SQLITE_API void sqlite3_mutex_leave(sqlite3_mutex *p){
17850 SQLITE_API int sqlite3_mutex_held(sqlite3_mutex *p){
17853 SQLITE_API int sqlite3_mutex_notheld(sqlite3_mutex *p){
17900 static sqlite3_mutex *noopMutexAlloc(int id){
17902 return (sqlite3_mutex*)8;
17904 static void noopMutexFree(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; }
17905 static void noopMutexEnter(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; }
17906 static int noopMutexTry(sqlite3_mutex *p){
17910 static void noopMutexLeave(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; }
17949 static int debugMutexHeld(sqlite3_mutex *pX){
17953 static int debugMutexNotheld(sqlite3_mutex *pX){
17969 static sqlite3_mutex *debugMutexAlloc(int id){
17990 return (sqlite3_mutex*)pNew;
17996 static void debugMutexFree(sqlite3_mutex *pX){
18014 static void debugMutexEnter(sqlite3_mutex *pX){
18019 static int debugMutexTry(sqlite3_mutex *pX){
18032 static void debugMutexLeave(sqlite3_mutex *pX){
18096 ** The sqlite3_mutex.id, sqlite3_mutex.nRef, and sqlite3_mutex.owner fields
18109 struct sqlite3_mutex {
18141 static int pthreadMutexHeld(sqlite3_mutex *p){
18144 static int pthreadMutexNotheld(sqlite3_mutex *p){
18197 static sqlite3_mutex *pthreadMutexAlloc(int iType){
18198 static sqlite3_mutex staticMutexes[] = {
18206 sqlite3_mutex *p;
18258 static void pthreadMutexFree(sqlite3_mutex *p){
18276 static void pthreadMutexEnter(sqlite3_mutex *p){
18318 static int pthreadMutexTry(sqlite3_mutex *p){
18375 static void pthreadMutexLeave(sqlite3_mutex *p){
18446 struct sqlite3_mutex {
18501 static int winMutexHeld(sqlite3_mutex *p){
18504 static int winMutexNotheld2(sqlite3_mutex *p, DWORD tid){
18507 static int winMutexNotheld(sqlite3_mutex *p){
18517 static sqlite3_mutex winMutex_staticMutexes[6] = {
18613 static sqlite3_mutex *winMutexAlloc(int iType){
18614 sqlite3_mutex *p;
18652 static void winMutexFree(sqlite3_mutex *p){
18671 static void winMutexEnter(sqlite3_mutex *p){
18686 static int winMutexTry(sqlite3_mutex *p){
18726 static void winMutexLeave(sqlite3_mutex *p){
18812 sqlite3_mutex *mutex; /* Mutex to serialize access */
20633 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_PRNG);
27059 sqlite3_mutex *mutex; /* Mutex to access this object */
33716 sqlite3_mutex *mutex; /* Mutex to access this object */
36710 sqlite3_mutex *mutex; /* MUTEX_STATIC_LRU or NULL */
36790 sqlite3_mutex *mutex; /* Mutex for accessing the following: */
49040 sqlite3_mutex *mutex; /* Non-recursive mutex required to access this object */
51291 sqlite3_mutex *mutexOpen = 0; /* Prevents a race condition. Ticket #3537 */
51347 MUTEX_LOGIC( sqlite3_mutex *mutexShared; )
51476 MUTEX_LOGIC( sqlite3_mutex *mutexShared; )
51560 MUTEX_LOGIC( sqlite3_mutex *pMaster; )
63315 sqlite3_mutex *mutex = ((Vdbe*)pStmt)->db->mutex;
92363 sqlite3_mutex *(*mutex_alloc)(int);
92364 void (*mutex_enter)(sqlite3_mutex*);
92365 void (*mutex_free)(sqlite3_mutex*);
92366 void (*mutex_leave)(sqlite3_mutex*);
92367 int (*mutex_try)(sqlite3_mutex*);
92401 sqlite3_mutex *(*db_mutex)(sqlite3*);
93290 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER);
93324 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER);
93354 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER);
114899 MUTEX_LOGIC( sqlite3_mutex *pMaster; ) /* The main static mutex */
115369 SQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3 *db){