Lines Matching refs:sqlite3_mutex

1575 typedef struct sqlite3_mutex sqlite3_mutex;  typedef
8372 SQLITE_API sqlite3_mutex *sqlite3_mutex_alloc(int);
8373 SQLITE_API void sqlite3_mutex_free(sqlite3_mutex*);
8374 SQLITE_API void sqlite3_mutex_enter(sqlite3_mutex*);
8375 SQLITE_API int sqlite3_mutex_try(sqlite3_mutex*);
8376 SQLITE_API void sqlite3_mutex_leave(sqlite3_mutex*);
8447 sqlite3_mutex *(*xMutexAlloc)(int);
8448 void (*xMutexFree)(sqlite3_mutex *);
8449 void (*xMutexEnter)(sqlite3_mutex *);
8450 int (*xMutexTry)(sqlite3_mutex *);
8451 void (*xMutexLeave)(sqlite3_mutex *);
8452 int (*xMutexHeld)(sqlite3_mutex *);
8453 int (*xMutexNotheld)(sqlite3_mutex *);
8486 SQLITE_API int sqlite3_mutex_held(sqlite3_mutex*);
8487 SQLITE_API int sqlite3_mutex_notheld(sqlite3_mutex*);
8531 SQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3*);
17307 #define sqlite3_mutex_alloc(X) ((sqlite3_mutex*)8)
17314 #define sqlite3MutexAlloc(X) ((sqlite3_mutex*)8)
17320 SQLITE_API int sqlite3_mutex_held(sqlite3_mutex*);
17588 sqlite3_mutex *mutex; /* Connection mutex */
20151 sqlite3_mutex *pInitMutex; /* Mutex used by sqlite3_initialize() */
20596 SQLITE_PRIVATE sqlite3_mutex *sqlite3MutexAlloc(int);
20613 SQLITE_PRIVATE sqlite3_mutex *sqlite3Pcache1Mutex(void);
20614 SQLITE_PRIVATE sqlite3_mutex *sqlite3MallocMutex(void);
20617 SQLITE_PRIVATE void sqlite3MutexWarnOnContention(sqlite3_mutex*);
23870 sqlite3_mutex *pMutex; in sqlite3_status64()
24654 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MAIN); in osLocaltime()
26123 sqlite3_mutex *mutex; in sqlite3_vfs_find()
26167 MUTEX_LOGIC(sqlite3_mutex *mutex;) in sqlite3_vfs_register()
26195 MUTEX_LOGIC(sqlite3_mutex *mutex;) in sqlite3_vfs_unregister()
26741 sqlite3_mutex *mutex;
27301 sqlite3_mutex *mutex;
27978 sqlite3_mutex *mutex;
28520 sqlite3_mutex *mutex;
28532 static int checkMutexHeld(sqlite3_mutex *p){ in checkMutexHeld()
28535 static int checkMutexNotheld(sqlite3_mutex *p){ in checkMutexNotheld()
28555 static sqlite3_mutex *checkMutexAlloc(int iType){ in checkMutexAlloc()
28588 return (sqlite3_mutex*)p; in checkMutexAlloc()
28594 static void checkMutexFree(sqlite3_mutex *p){ in checkMutexFree()
28617 static void checkMutexEnter(sqlite3_mutex *p){ in checkMutexEnter()
28633 static int checkMutexTry(sqlite3_mutex *p){ in checkMutexTry()
28641 static void checkMutexLeave(sqlite3_mutex *p){ in checkMutexLeave()
28670 SQLITE_PRIVATE void sqlite3MutexWarnOnContention(sqlite3_mutex *p){ in sqlite3MutexWarnOnContention()
28744 SQLITE_API sqlite3_mutex *sqlite3_mutex_alloc(int id){ in sqlite3_mutex_alloc()
28753 SQLITE_PRIVATE sqlite3_mutex *sqlite3MutexAlloc(int id){ in sqlite3MutexAlloc()
28765 SQLITE_API void sqlite3_mutex_free(sqlite3_mutex *p){ in sqlite3_mutex_free()
28776 SQLITE_API void sqlite3_mutex_enter(sqlite3_mutex *p){ in sqlite3_mutex_enter()
28787 SQLITE_API int sqlite3_mutex_try(sqlite3_mutex *p){ in sqlite3_mutex_try()
28802 SQLITE_API void sqlite3_mutex_leave(sqlite3_mutex *p){ in sqlite3_mutex_leave()
28814 SQLITE_API int sqlite3_mutex_held(sqlite3_mutex *p){ in sqlite3_mutex_held()
28818 SQLITE_API int sqlite3_mutex_notheld(sqlite3_mutex *p){ in sqlite3_mutex_notheld()
28867 static sqlite3_mutex *noopMutexAlloc(int id){ in noopMutexAlloc()
28869 return (sqlite3_mutex*)8; in noopMutexAlloc()
28871 static void noopMutexFree(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; } in noopMutexFree()
28872 static void noopMutexEnter(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; } in noopMutexEnter()
28873 static int noopMutexTry(sqlite3_mutex *p){ in noopMutexTry()
28877 static void noopMutexLeave(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; } in noopMutexLeave()
28916 static int debugMutexHeld(sqlite3_mutex *pX){ in debugMutexHeld()
28920 static int debugMutexNotheld(sqlite3_mutex *pX){ in debugMutexNotheld()
28936 static sqlite3_mutex *debugMutexAlloc(int id){ in debugMutexAlloc()
28961 return (sqlite3_mutex*)pNew; in debugMutexAlloc()
28967 static void debugMutexFree(sqlite3_mutex *pX){ in debugMutexFree()
28990 static void debugMutexEnter(sqlite3_mutex *pX){ in debugMutexEnter()
28995 static int debugMutexTry(sqlite3_mutex *pX){ in debugMutexTry()
29008 static void debugMutexLeave(sqlite3_mutex *pX){ in debugMutexLeave()
29086 struct sqlite3_mutex { struct
29123 static int pthreadMutexHeld(sqlite3_mutex *p){ in pthreadMutexHeld()
29126 static int pthreadMutexNotheld(sqlite3_mutex *p){ in pthreadMutexNotheld()
29198 static sqlite3_mutex *pthreadMutexAlloc(int iType){ in pthreadMutexAlloc()
29199 static sqlite3_mutex staticMutexes[] = { in pthreadMutexAlloc()
29213 sqlite3_mutex *p; in pthreadMutexAlloc()
29269 static void pthreadMutexFree(sqlite3_mutex *p){ in pthreadMutexFree()
29296 static void pthreadMutexEnter(sqlite3_mutex *p){ in pthreadMutexEnter()
29338 static int pthreadMutexTry(sqlite3_mutex *p){ in pthreadMutexTry()
29395 static void pthreadMutexLeave(sqlite3_mutex *p){ in pthreadMutexLeave()
29571 struct sqlite3_mutex { struct
29600 static int winMutexHeld(sqlite3_mutex *p){ in winMutexHeld() argument
29604 static int winMutexNotheld2(sqlite3_mutex *p, DWORD tid){ in winMutexNotheld2()
29608 static int winMutexNotheld(sqlite3_mutex *p){ in winMutexNotheld()
29634 static sqlite3_mutex winMutex_staticMutexes[] = {
29746 static sqlite3_mutex *winMutexAlloc(int iType){ in winMutexAlloc()
29747 sqlite3_mutex *p; in winMutexAlloc()
29794 static void winMutexFree(sqlite3_mutex *p){ in winMutexFree()
29818 static void winMutexEnter(sqlite3_mutex *p){ in winMutexEnter()
29841 static int winMutexTry(sqlite3_mutex *p){ in winMutexTry()
29891 static void winMutexLeave(sqlite3_mutex *p){ in winMutexLeave()
29982 sqlite3_mutex *mutex; /* Mutex to serialize access */
29998 SQLITE_PRIVATE sqlite3_mutex *sqlite3MallocMutex(void){ in sqlite3MallocMutex()
33670 sqlite3_mutex *mutex; in sqlite3_randomness()
38802 static sqlite3_mutex *unixBigLock = 0;
39228 sqlite3_mutex *pLockMutex; /* Hold this mutex for... */
42356 sqlite3_mutex *pShmMutex; /* Mutex to access this object */
42367 sqlite3_mutex *aMutex[SQLITE_SHM_NLOCK];
47593 MUTEX_LOGIC( sqlite3_mutex *pMainMtx; ) /* The main static mutex */
47594 MUTEX_LOGIC( sqlite3_mutex *pMem; ) /* The memsys static mutex */
49990 static sqlite3_mutex *winBigLock = 0;
50027 sqlite3_mutex *mutex; /* Mutex to access this object */
52083 MUTEX_LOGIC( sqlite3_mutex *pMutex; )
52589 sqlite3_mutex *pMutex; /* Used by shared stores only */
52729 sqlite3_mutex *pVfsMutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_VFS1);
53073 sqlite3_mutex *pVfsMutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_VFS1);
54956 sqlite3_mutex *mutex; /* MUTEX_STATIC_LRU or NULL */
55029 sqlite3_mutex *mutex; /* Mutex for accessing the following: */
56019 SQLITE_PRIVATE sqlite3_mutex *sqlite3Pcache1Mutex(void){
69603 sqlite3_mutex *mutex; /* Non-recursive mutex required to access this object */
72667 sqlite3_mutex *mutexOpen = 0; /* Prevents a race condition. Ticket #3537 */
72724 MUTEX_LOGIC( sqlite3_mutex *mutexShared; )
72870 MUTEX_LOGIC( sqlite3_mutex *mutexShared; )
72960 MUTEX_LOGIC( sqlite3_mutex *pMainMtx; )
90027 sqlite3_mutex *mutex;
135656 sqlite3_mutex *(*mutex_alloc)(int);
135657 void (*mutex_enter)(sqlite3_mutex*);
135658 void (*mutex_free)(sqlite3_mutex*);
135659 void (*mutex_leave)(sqlite3_mutex*);
135660 int (*mutex_try)(sqlite3_mutex*);
135694 sqlite3_mutex *(*db_mutex)(sqlite3*);
136975 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MAIN);
137013 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MAIN);
137043 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MAIN);
137073 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MAIN);
178371 MUTEX_LOGIC( sqlite3_mutex *pMainMtx; ) /* The main static mutex */
179040 SQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3 *db){
216706 sqlite3_mutex *mutex; /* Mutex to protect pMain */