Lines Matching refs:sqlite3_mutex

1350 typedef struct sqlite3_mutex sqlite3_mutex;  typedef
5931 SQLITE_API sqlite3_mutex *sqlite3_mutex_alloc(int);
5932 SQLITE_API void sqlite3_mutex_free(sqlite3_mutex*);
5933 SQLITE_API void sqlite3_mutex_enter(sqlite3_mutex*);
5934 SQLITE_API int sqlite3_mutex_try(sqlite3_mutex*);
5935 SQLITE_API void sqlite3_mutex_leave(sqlite3_mutex*);
6006 sqlite3_mutex *(*xMutexAlloc)(int);
6007 void (*xMutexFree)(sqlite3_mutex *);
6008 void (*xMutexEnter)(sqlite3_mutex *);
6009 int (*xMutexTry)(sqlite3_mutex *);
6010 void (*xMutexLeave)(sqlite3_mutex *);
6011 int (*xMutexHeld)(sqlite3_mutex *);
6012 int (*xMutexNotheld)(sqlite3_mutex *);
6045 SQLITE_API int sqlite3_mutex_held(sqlite3_mutex*);
6046 SQLITE_API int sqlite3_mutex_notheld(sqlite3_mutex*);
6079 SQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3*);
9285 #define sqlite3_mutex_alloc(X) ((sqlite3_mutex*)8)
9292 #define sqlite3MutexAlloc(X) ((sqlite3_mutex*)8)
9469 sqlite3_mutex *mutex; /* Connection mutex */
11107 sqlite3_mutex *pInitMutex; /* Mutex used by sqlite3_initialize() */
11266 SQLITE_PRIVATE sqlite3_mutex *sqlite3MutexAlloc(int);
13638 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER); in osLocaltime()
14590 sqlite3_mutex *mutex; in sqlite3_vfs_find()
14634 sqlite3_mutex *mutex = 0; in sqlite3_vfs_register()
14659 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER); in sqlite3_vfs_unregister()
15056 sqlite3_mutex *mutex;
15615 sqlite3_mutex *mutex;
16291 sqlite3_mutex *mutex;
16853 SQLITE_API sqlite3_mutex *sqlite3_mutex_alloc(int id){ in sqlite3_mutex_alloc()
16860 SQLITE_PRIVATE sqlite3_mutex *sqlite3MutexAlloc(int id){ in sqlite3MutexAlloc()
16871 SQLITE_API void sqlite3_mutex_free(sqlite3_mutex *p){ in sqlite3_mutex_free()
16881 SQLITE_API void sqlite3_mutex_enter(sqlite3_mutex *p){ in sqlite3_mutex_enter()
16891 SQLITE_API int sqlite3_mutex_try(sqlite3_mutex *p){ in sqlite3_mutex_try()
16905 SQLITE_API void sqlite3_mutex_leave(sqlite3_mutex *p){ in sqlite3_mutex_leave()
16916 SQLITE_API int sqlite3_mutex_held(sqlite3_mutex *p){ in sqlite3_mutex_held()
16919 SQLITE_API int sqlite3_mutex_notheld(sqlite3_mutex *p){ in sqlite3_mutex_notheld()
16966 static sqlite3_mutex *noopMutexAlloc(int id){ in noopMutexAlloc()
16968 return (sqlite3_mutex*)8; in noopMutexAlloc()
16970 static void noopMutexFree(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; } in noopMutexFree()
16971 static void noopMutexEnter(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; } in noopMutexEnter()
16972 static int noopMutexTry(sqlite3_mutex *p){ in noopMutexTry()
16976 static void noopMutexLeave(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; } in noopMutexLeave()
17015 static int debugMutexHeld(sqlite3_mutex *pX){ in debugMutexHeld()
17019 static int debugMutexNotheld(sqlite3_mutex *pX){ in debugMutexNotheld()
17035 static sqlite3_mutex *debugMutexAlloc(int id){ in debugMutexAlloc()
17056 return (sqlite3_mutex*)pNew; in debugMutexAlloc()
17062 static void debugMutexFree(sqlite3_mutex *pX){ in debugMutexFree()
17080 static void debugMutexEnter(sqlite3_mutex *pX){ in debugMutexEnter()
17085 static int debugMutexTry(sqlite3_mutex *pX){ in debugMutexTry()
17098 static void debugMutexLeave(sqlite3_mutex *pX){ in debugMutexLeave()
17165 struct sqlite3_mutex { struct
17227 static sqlite3_mutex *os2MutexAlloc(int iType){ in os2MutexAlloc()
17228 sqlite3_mutex *p = NULL; in os2MutexAlloc()
17244 static sqlite3_mutex staticMutexes[6] = { in os2MutexAlloc()
17295 static void os2MutexFree(sqlite3_mutex *p){ in os2MutexFree()
17313 static int os2MutexHeld(sqlite3_mutex *p){ in os2MutexHeld()
17324 static int os2MutexNotheld(sqlite3_mutex *p){ in os2MutexNotheld()
17335 static void os2MutexTrace(sqlite3_mutex *p, char *pAction){ in os2MutexTrace()
17355 static void os2MutexEnter(sqlite3_mutex *p){ in os2MutexEnter()
17362 static int os2MutexTry(sqlite3_mutex *p){ in os2MutexTry()
17380 static void os2MutexLeave(sqlite3_mutex *p){ in os2MutexLeave()
17451 struct sqlite3_mutex { struct
17483 static int pthreadMutexHeld(sqlite3_mutex *p){ in pthreadMutexHeld()
17486 static int pthreadMutexNotheld(sqlite3_mutex *p){ in pthreadMutexNotheld()
17539 static sqlite3_mutex *pthreadMutexAlloc(int iType){ in pthreadMutexAlloc()
17540 static sqlite3_mutex staticMutexes[] = { in pthreadMutexAlloc()
17548 sqlite3_mutex *p; in pthreadMutexAlloc()
17600 static void pthreadMutexFree(sqlite3_mutex *p){ in pthreadMutexFree()
17618 static void pthreadMutexEnter(sqlite3_mutex *p){ in pthreadMutexEnter()
17660 static int pthreadMutexTry(sqlite3_mutex *p){ in pthreadMutexTry()
17717 static void pthreadMutexLeave(sqlite3_mutex *p){ in pthreadMutexLeave()
17788 struct sqlite3_mutex { struct
17843 static int winMutexHeld(sqlite3_mutex *p){ in winMutexHeld()
17846 static int winMutexNotheld2(sqlite3_mutex *p, DWORD tid){ in winMutexNotheld2()
17849 static int winMutexNotheld(sqlite3_mutex *p){ in winMutexNotheld()
17859 static sqlite3_mutex winMutex_staticMutexes[6] = {
17949 static sqlite3_mutex *winMutexAlloc(int iType){ in winMutexAlloc()
17950 sqlite3_mutex *p; in winMutexAlloc()
17984 static void winMutexFree(sqlite3_mutex *p){ in winMutexFree()
18003 static void winMutexEnter(sqlite3_mutex *p){ in winMutexEnter()
18018 static int winMutexTry(sqlite3_mutex *p){ in winMutexTry()
18058 static void winMutexLeave(sqlite3_mutex *p){ in winMutexLeave()
18144 sqlite3_mutex *mutex; /* Mutex to serialize access */
20015 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_PRNG); in sqlite3_randomness()
23211 sqlite3_mutex *mutex; /* Mutex to access this object */
28190 sqlite3_mutex *mutex; /* Mutex to access this object */
33303 sqlite3_mutex *mutex; /* Mutex to access this object */
35824 sqlite3_mutex *mutex; /* MUTEX_STATIC_LRU or NULL */
35961 sqlite3_mutex *mutex; /* Mutex for accessing the following: */
47771 sqlite3_mutex *mutex; /* Non-recursive mutex required to access this object */
49970 sqlite3_mutex *mutexOpen = 0; /* Prevents a race condition. Ticket #3537 */
50028 sqlite3_mutex *mutexShared;
50144 sqlite3_mutex *mutexShared;
50228 sqlite3_mutex *pMaster;
56991 sqlite3_mutex *mutex; /* Mutex to protect source database */
61619 sqlite3_mutex *mutex;
61665 sqlite3_mutex *mutex = ((Vdbe*)pStmt)->db->mutex;
89061 sqlite3_mutex *(*mutex_alloc)(int);
89062 void (*mutex_enter)(sqlite3_mutex*);
89063 void (*mutex_free)(sqlite3_mutex*);
89064 void (*mutex_leave)(sqlite3_mutex*);
89065 int (*mutex_try)(sqlite3_mutex*);
89095 sqlite3_mutex *(*db_mutex)(sqlite3*);
89875 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER);
89909 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER);
89938 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER);
110253 sqlite3_mutex *pMaster; /* The main static mutex */
110664 SQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3 *db){