Lines Matching refs:sqlite3_mutex

2222 typedef struct sqlite3_mutex sqlite3_mutex;  typedef
8490 SQLITE_API sqlite3_mutex *sqlite3_mutex_alloc(int);
8491 SQLITE_API void sqlite3_mutex_free(sqlite3_mutex*);
8492 SQLITE_API void sqlite3_mutex_enter(sqlite3_mutex*);
8493 SQLITE_API int sqlite3_mutex_try(sqlite3_mutex*);
8494 SQLITE_API void sqlite3_mutex_leave(sqlite3_mutex*);
8565 sqlite3_mutex *(*xMutexAlloc)(int);
8566 void (*xMutexFree)(sqlite3_mutex *);
8567 void (*xMutexEnter)(sqlite3_mutex *);
8568 int (*xMutexTry)(sqlite3_mutex *);
8569 void (*xMutexLeave)(sqlite3_mutex *);
8570 int (*xMutexHeld)(sqlite3_mutex *);
8571 int (*xMutexNotheld)(sqlite3_mutex *);
8604 SQLITE_API int sqlite3_mutex_held(sqlite3_mutex*);
8605 SQLITE_API int sqlite3_mutex_notheld(sqlite3_mutex*);
8645 SQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3*);
16521 #define sqlite3_mutex_alloc(X) ((sqlite3_mutex*)8)
16528 #define sqlite3MutexAlloc(X) ((sqlite3_mutex*)8)
16534 SQLITE_API int sqlite3_mutex_held(sqlite3_mutex*);
16796 sqlite3_mutex *mutex; /* Connection mutex */
19002 sqlite3_mutex *pInitMutex; /* Mutex used by sqlite3_initialize() */
19364 SQLITE_PRIVATE sqlite3_mutex *sqlite3MutexAlloc(int);
19381 SQLITE_PRIVATE sqlite3_mutex *sqlite3Pcache1Mutex(void);
19382 SQLITE_PRIVATE sqlite3_mutex *sqlite3MallocMutex(void);
19385 SQLITE_PRIVATE void sqlite3MutexWarnOnContention(sqlite3_mutex*);
21401 sqlite3_mutex *pMutex; in sqlite3_status64()
22175 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER); in osLocaltime()
23258 sqlite3_mutex *mutex; in sqlite3_vfs_find()
23302 MUTEX_LOGIC(sqlite3_mutex *mutex;) in sqlite3_vfs_register()
23330 MUTEX_LOGIC(sqlite3_mutex *mutex;) in sqlite3_vfs_unregister()
23876 sqlite3_mutex *mutex;
24436 sqlite3_mutex *mutex;
25113 sqlite3_mutex *mutex;
25646 sqlite3_mutex *mutex;
25658 static int checkMutexHeld(sqlite3_mutex *p){ in checkMutexHeld()
25661 static int checkMutexNotheld(sqlite3_mutex *p){ in checkMutexNotheld()
25681 static sqlite3_mutex *checkMutexAlloc(int iType){ in checkMutexAlloc()
25714 return (sqlite3_mutex*)p; in checkMutexAlloc()
25720 static void checkMutexFree(sqlite3_mutex *p){ in checkMutexFree()
25743 static void checkMutexEnter(sqlite3_mutex *p){ in checkMutexEnter()
25759 static int checkMutexTry(sqlite3_mutex *p){ in checkMutexTry()
25767 static void checkMutexLeave(sqlite3_mutex *p){ in checkMutexLeave()
25796 SQLITE_PRIVATE void sqlite3MutexWarnOnContention(sqlite3_mutex *p){ in sqlite3MutexWarnOnContention()
25870 SQLITE_API sqlite3_mutex *sqlite3_mutex_alloc(int id){ in sqlite3_mutex_alloc()
25879 SQLITE_PRIVATE sqlite3_mutex *sqlite3MutexAlloc(int id){ in sqlite3MutexAlloc()
25891 SQLITE_API void sqlite3_mutex_free(sqlite3_mutex *p){ in sqlite3_mutex_free()
25902 SQLITE_API void sqlite3_mutex_enter(sqlite3_mutex *p){ in sqlite3_mutex_enter()
25913 SQLITE_API int sqlite3_mutex_try(sqlite3_mutex *p){ in sqlite3_mutex_try()
25928 SQLITE_API void sqlite3_mutex_leave(sqlite3_mutex *p){ in sqlite3_mutex_leave()
25940 SQLITE_API int sqlite3_mutex_held(sqlite3_mutex *p){ in sqlite3_mutex_held()
25944 SQLITE_API int sqlite3_mutex_notheld(sqlite3_mutex *p){ in sqlite3_mutex_notheld()
25993 static sqlite3_mutex *noopMutexAlloc(int id){ in noopMutexAlloc()
25995 return (sqlite3_mutex*)8; in noopMutexAlloc()
25997 static void noopMutexFree(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; } in noopMutexFree()
25998 static void noopMutexEnter(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; } in noopMutexEnter()
25999 static int noopMutexTry(sqlite3_mutex *p){ in noopMutexTry()
26003 static void noopMutexLeave(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; } in noopMutexLeave()
26042 static int debugMutexHeld(sqlite3_mutex *pX){ in debugMutexHeld()
26046 static int debugMutexNotheld(sqlite3_mutex *pX){ in debugMutexNotheld()
26062 static sqlite3_mutex *debugMutexAlloc(int id){ in debugMutexAlloc()
26087 return (sqlite3_mutex*)pNew; in debugMutexAlloc()
26093 static void debugMutexFree(sqlite3_mutex *pX){ in debugMutexFree()
26116 static void debugMutexEnter(sqlite3_mutex *pX){ in debugMutexEnter()
26121 static int debugMutexTry(sqlite3_mutex *pX){ in debugMutexTry()
26134 static void debugMutexLeave(sqlite3_mutex *pX){ in debugMutexLeave()
26212 struct sqlite3_mutex { struct
26249 static int pthreadMutexHeld(sqlite3_mutex *p){ in pthreadMutexHeld()
26252 static int pthreadMutexNotheld(sqlite3_mutex *p){ in pthreadMutexNotheld()
26324 static sqlite3_mutex *pthreadMutexAlloc(int iType){ in pthreadMutexAlloc()
26325 static sqlite3_mutex staticMutexes[] = { in pthreadMutexAlloc()
26339 sqlite3_mutex *p; in pthreadMutexAlloc()
26395 static void pthreadMutexFree(sqlite3_mutex *p){ in pthreadMutexFree()
26422 static void pthreadMutexEnter(sqlite3_mutex *p){ in pthreadMutexEnter()
26464 static int pthreadMutexTry(sqlite3_mutex *p){ in pthreadMutexTry()
26521 static void pthreadMutexLeave(sqlite3_mutex *p){ in pthreadMutexLeave()
26895 struct sqlite3_mutex {
26924 static int winMutexHeld(sqlite3_mutex *p){
26928 static int winMutexNotheld2(sqlite3_mutex *p, DWORD tid){
26932 static int winMutexNotheld(sqlite3_mutex *p){
26958 static sqlite3_mutex winMutex_staticMutexes[] = {
27070 static sqlite3_mutex *winMutexAlloc(int iType){
27071 sqlite3_mutex *p;
27118 static void winMutexFree(sqlite3_mutex *p){
27142 static void winMutexEnter(sqlite3_mutex *p){
27165 static int winMutexTry(sqlite3_mutex *p){
27215 static void winMutexLeave(sqlite3_mutex *p){
27306 sqlite3_mutex *mutex; /* Mutex to serialize access */
27322 SQLITE_PRIVATE sqlite3_mutex *sqlite3MallocMutex(void){
30229 sqlite3_mutex *mutex;
34187 static sqlite3_mutex *unixBigLock = 0;
34613 sqlite3_mutex *pLockMutex; /* Hold this mutex for... */
37698 sqlite3_mutex *pShmMutex; /* Mutex to access this object */
42878 MUTEX_LOGIC( sqlite3_mutex *pMaster; ) /* The main static mutex */
42879 MUTEX_LOGIC( sqlite3_mutex *pMem; ) /* The memsys static mutex */
45268 static sqlite3_mutex *winBigLock = 0;
45305 sqlite3_mutex *mutex; /* Mutex to access this object */
49812 sqlite3_mutex *mutex; /* MUTEX_STATIC_LRU or NULL */
49885 sqlite3_mutex *mutex; /* Mutex for accessing the following: */
50880 SQLITE_PRIVATE sqlite3_mutex *sqlite3Pcache1Mutex(void){
63751 sqlite3_mutex *mutex; /* Non-recursive mutex required to access this object */
66667 sqlite3_mutex *mutexOpen = 0; /* Prevents a race condition. Ticket #3537 */
66724 MUTEX_LOGIC( sqlite3_mutex *mutexShared; )
66867 MUTEX_LOGIC( sqlite3_mutex *mutexShared; )
66957 MUTEX_LOGIC( sqlite3_mutex *pMaster; )
82929 sqlite3_mutex *mutex = ((Vdbe*)pStmt)->db->mutex;
123375 sqlite3_mutex *(*mutex_alloc)(int);
123376 void (*mutex_enter)(sqlite3_mutex*);
123377 void (*mutex_free)(sqlite3_mutex*);
123378 void (*mutex_leave)(sqlite3_mutex*);
123379 int (*mutex_try)(sqlite3_mutex*);
123413 sqlite3_mutex *(*db_mutex)(sqlite3*);
124568 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER);
124606 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER);
124633 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER);
124663 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER);
160370 MUTEX_LOGIC( sqlite3_mutex *pMaster; ) /* The main static mutex */
161016 SQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3 *db){
195380 sqlite3_mutex *mutex; /* Mutex to protect pMain */