Lines Matching refs:sqlite3_mutex

1605 typedef struct sqlite3_mutex sqlite3_mutex;  typedef
8614 SQLITE_API sqlite3_mutex *sqlite3_mutex_alloc(int);
8615 SQLITE_API void sqlite3_mutex_free(sqlite3_mutex*);
8616 SQLITE_API void sqlite3_mutex_enter(sqlite3_mutex*);
8617 SQLITE_API int sqlite3_mutex_try(sqlite3_mutex*);
8618 SQLITE_API void sqlite3_mutex_leave(sqlite3_mutex*);
8689 sqlite3_mutex *(*xMutexAlloc)(int);
8690 void (*xMutexFree)(sqlite3_mutex *);
8691 void (*xMutexEnter)(sqlite3_mutex *);
8692 int (*xMutexTry)(sqlite3_mutex *);
8693 void (*xMutexLeave)(sqlite3_mutex *);
8694 int (*xMutexHeld)(sqlite3_mutex *);
8695 int (*xMutexNotheld)(sqlite3_mutex *);
8728 SQLITE_API int sqlite3_mutex_held(sqlite3_mutex*);
8729 SQLITE_API int sqlite3_mutex_notheld(sqlite3_mutex*);
8773 SQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3*);
17790 #define sqlite3_mutex_alloc(X) ((sqlite3_mutex*)8)
17797 #define sqlite3MutexAlloc(X) ((sqlite3_mutex*)8)
17803 SQLITE_API int sqlite3_mutex_held(sqlite3_mutex*);
18039 sqlite3_mutex *mutex; /* Connection mutex */
20688 sqlite3_mutex *pInitMutex; /* Mutex used by sqlite3_initialize() */
21140 SQLITE_PRIVATE sqlite3_mutex *sqlite3MutexAlloc(int);
21157 SQLITE_PRIVATE sqlite3_mutex *sqlite3Pcache1Mutex(void);
21158 SQLITE_PRIVATE sqlite3_mutex *sqlite3MallocMutex(void);
21161 SQLITE_PRIVATE void sqlite3MutexWarnOnContention(sqlite3_mutex*);
24453 sqlite3_mutex *pMutex; in sqlite3_status64()
25274 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MAIN); in osLocaltime()
26901 sqlite3_mutex *mutex; in sqlite3_vfs_find()
26945 MUTEX_LOGIC(sqlite3_mutex *mutex;) in sqlite3_vfs_register()
26973 MUTEX_LOGIC(sqlite3_mutex *mutex;) in sqlite3_vfs_unregister()
27519 sqlite3_mutex *mutex;
28079 sqlite3_mutex *mutex;
28756 sqlite3_mutex *mutex;
29298 sqlite3_mutex *mutex;
29310 static int checkMutexHeld(sqlite3_mutex *p){ in checkMutexHeld()
29313 static int checkMutexNotheld(sqlite3_mutex *p){ in checkMutexNotheld()
29333 static sqlite3_mutex *checkMutexAlloc(int iType){ in checkMutexAlloc()
29366 return (sqlite3_mutex*)p; in checkMutexAlloc()
29372 static void checkMutexFree(sqlite3_mutex *p){ in checkMutexFree()
29395 static void checkMutexEnter(sqlite3_mutex *p){ in checkMutexEnter()
29411 static int checkMutexTry(sqlite3_mutex *p){ in checkMutexTry()
29419 static void checkMutexLeave(sqlite3_mutex *p){ in checkMutexLeave()
29448 SQLITE_PRIVATE void sqlite3MutexWarnOnContention(sqlite3_mutex *p){ in sqlite3MutexWarnOnContention()
29522 SQLITE_API sqlite3_mutex *sqlite3_mutex_alloc(int id){ in sqlite3_mutex_alloc()
29531 SQLITE_PRIVATE sqlite3_mutex *sqlite3MutexAlloc(int id){ in sqlite3MutexAlloc()
29543 SQLITE_API void sqlite3_mutex_free(sqlite3_mutex *p){ in sqlite3_mutex_free()
29554 SQLITE_API void sqlite3_mutex_enter(sqlite3_mutex *p){ in sqlite3_mutex_enter()
29565 SQLITE_API int sqlite3_mutex_try(sqlite3_mutex *p){ in sqlite3_mutex_try()
29580 SQLITE_API void sqlite3_mutex_leave(sqlite3_mutex *p){ in sqlite3_mutex_leave()
29595 SQLITE_API int sqlite3_mutex_held(sqlite3_mutex *p){ in sqlite3_mutex_held()
29604 SQLITE_API int sqlite3_mutex_notheld(sqlite3_mutex *p){ in sqlite3_mutex_notheld()
29658 static sqlite3_mutex *noopMutexAlloc(int id){ in noopMutexAlloc()
29660 return (sqlite3_mutex*)8; in noopMutexAlloc()
29662 static void noopMutexFree(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; } in noopMutexFree()
29663 static void noopMutexEnter(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; } in noopMutexEnter()
29664 static int noopMutexTry(sqlite3_mutex *p){ in noopMutexTry()
29668 static void noopMutexLeave(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; } in noopMutexLeave()
29707 static int debugMutexHeld(sqlite3_mutex *pX){ in debugMutexHeld()
29711 static int debugMutexNotheld(sqlite3_mutex *pX){ in debugMutexNotheld()
29727 static sqlite3_mutex *debugMutexAlloc(int id){ in debugMutexAlloc()
29752 return (sqlite3_mutex*)pNew; in debugMutexAlloc()
29758 static void debugMutexFree(sqlite3_mutex *pX){ in debugMutexFree()
29781 static void debugMutexEnter(sqlite3_mutex *pX){ in debugMutexEnter()
29786 static int debugMutexTry(sqlite3_mutex *pX){ in debugMutexTry()
29799 static void debugMutexLeave(sqlite3_mutex *pX){ in debugMutexLeave()
29877 struct sqlite3_mutex { struct
29914 static int pthreadMutexHeld(sqlite3_mutex *p){ in pthreadMutexHeld()
29917 static int pthreadMutexNotheld(sqlite3_mutex *p){ in pthreadMutexNotheld()
29989 static sqlite3_mutex *pthreadMutexAlloc(int iType){ in pthreadMutexAlloc()
29990 static sqlite3_mutex staticMutexes[] = { in pthreadMutexAlloc()
30004 sqlite3_mutex *p; in pthreadMutexAlloc()
30060 static void pthreadMutexFree(sqlite3_mutex *p){ in pthreadMutexFree()
30087 static void pthreadMutexEnter(sqlite3_mutex *p){ in pthreadMutexEnter()
30129 static int pthreadMutexTry(sqlite3_mutex *p){ in pthreadMutexTry()
30186 static void pthreadMutexLeave(sqlite3_mutex *p){ in pthreadMutexLeave()
30364 struct sqlite3_mutex { struct
30393 static int winMutexHeld(sqlite3_mutex *p){ in winMutexHeld() argument
30397 static int winMutexNotheld2(sqlite3_mutex *p, DWORD tid){ in winMutexNotheld2()
30401 static int winMutexNotheld(sqlite3_mutex *p){ in winMutexNotheld()
30427 static sqlite3_mutex winMutex_staticMutexes[] = {
30539 static sqlite3_mutex *winMutexAlloc(int iType){ in winMutexAlloc()
30540 sqlite3_mutex *p; in winMutexAlloc()
30587 static void winMutexFree(sqlite3_mutex *p){ in winMutexFree()
30611 static void winMutexEnter(sqlite3_mutex *p){ in winMutexEnter()
30634 static int winMutexTry(sqlite3_mutex *p){ in winMutexTry()
30684 static void winMutexLeave(sqlite3_mutex *p){ in winMutexLeave()
30775 sqlite3_mutex *mutex; /* Mutex to serialize access */
30791 SQLITE_PRIVATE sqlite3_mutex *sqlite3MallocMutex(void){ in sqlite3MallocMutex()
34550 sqlite3_mutex *mutex; in sqlite3_randomness()
39628 static sqlite3_mutex *unixBigLock = 0;
40054 sqlite3_mutex *pLockMutex; /* Hold this mutex for... */
43180 sqlite3_mutex *pShmMutex; /* Mutex to access this object */
43191 sqlite3_mutex *aMutex[SQLITE_SHM_NLOCK];
48532 MUTEX_LOGIC( sqlite3_mutex *pMainMtx; ) /* The main static mutex */ in sqlite3_win32_reset_heap()
48533 MUTEX_LOGIC( sqlite3_mutex *pMem; ) /* The memsys static mutex */ in sqlite3_win32_reset_heap()
51138 static sqlite3_mutex *winBigLock = 0;
51179 sqlite3_mutex *mutex; /* Mutex to access this object */
53400 MUTEX_LOGIC( sqlite3_mutex *pMutex; )
53889 sqlite3_mutex *pMutex; /* Used by shared stores only */
54029 sqlite3_mutex *pVfsMutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_VFS1);
54373 sqlite3_mutex *pVfsMutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_VFS1);
56267 sqlite3_mutex *mutex; /* MUTEX_STATIC_LRU or NULL */
56340 sqlite3_mutex *mutex; /* Mutex for accessing the following: */
57328 SQLITE_PRIVATE sqlite3_mutex *sqlite3Pcache1Mutex(void){
70966 sqlite3_mutex *mutex; /* Non-recursive mutex required to access this object */
74091 sqlite3_mutex *mutexOpen = 0; /* Prevents a race condition. Ticket #3537 */
74148 MUTEX_LOGIC( sqlite3_mutex *mutexShared; )
74294 MUTEX_LOGIC( sqlite3_mutex *mutexShared; )
74384 MUTEX_LOGIC( sqlite3_mutex *pMainMtx; )
91614 sqlite3_mutex *mutex;
138555 sqlite3_mutex *(*mutex_alloc)(int);
138556 void (*mutex_enter)(sqlite3_mutex*);
138557 void (*mutex_free)(sqlite3_mutex*);
138558 void (*mutex_leave)(sqlite3_mutex*);
138559 int (*mutex_try)(sqlite3_mutex*);
138593 sqlite3_mutex *(*db_mutex)(sqlite3*);
139880 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MAIN);
139918 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MAIN);
139948 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MAIN);
139978 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MAIN);
182832 MUTEX_LOGIC( sqlite3_mutex *pMainMtx; ) /* The main static mutex */
183524 SQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3 *db){
221724 sqlite3_mutex *mutex; /* Mutex to protect pMain */