Lines Matching refs:sqlite3_mutex
1577 typedef struct sqlite3_mutex sqlite3_mutex; typedef
8397 SQLITE_API sqlite3_mutex *sqlite3_mutex_alloc(int);
8398 SQLITE_API void sqlite3_mutex_free(sqlite3_mutex*);
8399 SQLITE_API void sqlite3_mutex_enter(sqlite3_mutex*);
8400 SQLITE_API int sqlite3_mutex_try(sqlite3_mutex*);
8401 SQLITE_API void sqlite3_mutex_leave(sqlite3_mutex*);
8472 sqlite3_mutex *(*xMutexAlloc)(int);
8473 void (*xMutexFree)(sqlite3_mutex *);
8474 void (*xMutexEnter)(sqlite3_mutex *);
8475 int (*xMutexTry)(sqlite3_mutex *);
8476 void (*xMutexLeave)(sqlite3_mutex *);
8477 int (*xMutexHeld)(sqlite3_mutex *);
8478 int (*xMutexNotheld)(sqlite3_mutex *);
8511 SQLITE_API int sqlite3_mutex_held(sqlite3_mutex*);
8512 SQLITE_API int sqlite3_mutex_notheld(sqlite3_mutex*);
8556 SQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3*);
17357 #define sqlite3_mutex_alloc(X) ((sqlite3_mutex*)8)
17364 #define sqlite3MutexAlloc(X) ((sqlite3_mutex*)8)
17370 SQLITE_API int sqlite3_mutex_held(sqlite3_mutex*);
17642 sqlite3_mutex *mutex; /* Connection mutex */
20221 sqlite3_mutex *pInitMutex; /* Mutex used by sqlite3_initialize() */
20674 SQLITE_PRIVATE sqlite3_mutex *sqlite3MutexAlloc(int);
20691 SQLITE_PRIVATE sqlite3_mutex *sqlite3Pcache1Mutex(void);
20692 SQLITE_PRIVATE sqlite3_mutex *sqlite3MallocMutex(void);
20695 SQLITE_PRIVATE void sqlite3MutexWarnOnContention(sqlite3_mutex*);
23958 sqlite3_mutex *pMutex; in sqlite3_status64()
24775 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MAIN); in osLocaltime()
26402 sqlite3_mutex *mutex; in sqlite3_vfs_find()
26446 MUTEX_LOGIC(sqlite3_mutex *mutex;) in sqlite3_vfs_register()
26474 MUTEX_LOGIC(sqlite3_mutex *mutex;) in sqlite3_vfs_unregister()
27020 sqlite3_mutex *mutex;
27580 sqlite3_mutex *mutex;
28257 sqlite3_mutex *mutex;
28799 sqlite3_mutex *mutex;
28811 static int checkMutexHeld(sqlite3_mutex *p){ in checkMutexHeld()
28814 static int checkMutexNotheld(sqlite3_mutex *p){ in checkMutexNotheld()
28834 static sqlite3_mutex *checkMutexAlloc(int iType){ in checkMutexAlloc()
28867 return (sqlite3_mutex*)p; in checkMutexAlloc()
28873 static void checkMutexFree(sqlite3_mutex *p){ in checkMutexFree()
28896 static void checkMutexEnter(sqlite3_mutex *p){ in checkMutexEnter()
28912 static int checkMutexTry(sqlite3_mutex *p){ in checkMutexTry()
28920 static void checkMutexLeave(sqlite3_mutex *p){ in checkMutexLeave()
28949 SQLITE_PRIVATE void sqlite3MutexWarnOnContention(sqlite3_mutex *p){ in sqlite3MutexWarnOnContention()
29023 SQLITE_API sqlite3_mutex *sqlite3_mutex_alloc(int id){ in sqlite3_mutex_alloc()
29032 SQLITE_PRIVATE sqlite3_mutex *sqlite3MutexAlloc(int id){ in sqlite3MutexAlloc()
29044 SQLITE_API void sqlite3_mutex_free(sqlite3_mutex *p){ in sqlite3_mutex_free()
29055 SQLITE_API void sqlite3_mutex_enter(sqlite3_mutex *p){ in sqlite3_mutex_enter()
29066 SQLITE_API int sqlite3_mutex_try(sqlite3_mutex *p){ in sqlite3_mutex_try()
29081 SQLITE_API void sqlite3_mutex_leave(sqlite3_mutex *p){ in sqlite3_mutex_leave()
29093 SQLITE_API int sqlite3_mutex_held(sqlite3_mutex *p){ in sqlite3_mutex_held()
29097 SQLITE_API int sqlite3_mutex_notheld(sqlite3_mutex *p){ in sqlite3_mutex_notheld()
29146 static sqlite3_mutex *noopMutexAlloc(int id){ in noopMutexAlloc()
29148 return (sqlite3_mutex*)8; in noopMutexAlloc()
29150 static void noopMutexFree(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; } in noopMutexFree()
29151 static void noopMutexEnter(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; } in noopMutexEnter()
29152 static int noopMutexTry(sqlite3_mutex *p){ in noopMutexTry()
29156 static void noopMutexLeave(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; } in noopMutexLeave()
29195 static int debugMutexHeld(sqlite3_mutex *pX){ in debugMutexHeld()
29199 static int debugMutexNotheld(sqlite3_mutex *pX){ in debugMutexNotheld()
29215 static sqlite3_mutex *debugMutexAlloc(int id){ in debugMutexAlloc()
29240 return (sqlite3_mutex*)pNew; in debugMutexAlloc()
29246 static void debugMutexFree(sqlite3_mutex *pX){ in debugMutexFree()
29269 static void debugMutexEnter(sqlite3_mutex *pX){ in debugMutexEnter()
29274 static int debugMutexTry(sqlite3_mutex *pX){ in debugMutexTry()
29287 static void debugMutexLeave(sqlite3_mutex *pX){ in debugMutexLeave()
29365 struct sqlite3_mutex { struct
29402 static int pthreadMutexHeld(sqlite3_mutex *p){ in pthreadMutexHeld()
29405 static int pthreadMutexNotheld(sqlite3_mutex *p){ in pthreadMutexNotheld()
29477 static sqlite3_mutex *pthreadMutexAlloc(int iType){ in pthreadMutexAlloc()
29478 static sqlite3_mutex staticMutexes[] = { in pthreadMutexAlloc()
29492 sqlite3_mutex *p; in pthreadMutexAlloc()
29548 static void pthreadMutexFree(sqlite3_mutex *p){ in pthreadMutexFree()
29575 static void pthreadMutexEnter(sqlite3_mutex *p){ in pthreadMutexEnter()
29617 static int pthreadMutexTry(sqlite3_mutex *p){ in pthreadMutexTry()
29674 static void pthreadMutexLeave(sqlite3_mutex *p){ in pthreadMutexLeave()
29850 struct sqlite3_mutex { struct
29879 static int winMutexHeld(sqlite3_mutex *p){ in winMutexHeld() argument
29883 static int winMutexNotheld2(sqlite3_mutex *p, DWORD tid){ in winMutexNotheld2()
29887 static int winMutexNotheld(sqlite3_mutex *p){ in winMutexNotheld()
29913 static sqlite3_mutex winMutex_staticMutexes[] = {
30025 static sqlite3_mutex *winMutexAlloc(int iType){ in winMutexAlloc()
30026 sqlite3_mutex *p; in winMutexAlloc()
30073 static void winMutexFree(sqlite3_mutex *p){ in winMutexFree()
30097 static void winMutexEnter(sqlite3_mutex *p){ in winMutexEnter()
30120 static int winMutexTry(sqlite3_mutex *p){ in winMutexTry()
30170 static void winMutexLeave(sqlite3_mutex *p){ in winMutexLeave()
30261 sqlite3_mutex *mutex; /* Mutex to serialize access */
30277 SQLITE_PRIVATE sqlite3_mutex *sqlite3MallocMutex(void){ in sqlite3MallocMutex()
33979 sqlite3_mutex *mutex; in sqlite3_randomness()
39142 static sqlite3_mutex *unixBigLock = 0;
39568 sqlite3_mutex *pLockMutex; /* Hold this mutex for... */
42700 sqlite3_mutex *pShmMutex; /* Mutex to access this object */
42711 sqlite3_mutex *aMutex[SQLITE_SHM_NLOCK];
47944 MUTEX_LOGIC( sqlite3_mutex *pMainMtx; ) /* The main static mutex */
47945 MUTEX_LOGIC( sqlite3_mutex *pMem; ) /* The memsys static mutex */
50341 static sqlite3_mutex *winBigLock = 0;
50378 sqlite3_mutex *mutex; /* Mutex to access this object */
52434 MUTEX_LOGIC( sqlite3_mutex *pMutex; )
52940 sqlite3_mutex *pMutex; /* Used by shared stores only */
53080 sqlite3_mutex *pVfsMutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_VFS1);
53424 sqlite3_mutex *pVfsMutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_VFS1);
55315 sqlite3_mutex *mutex; /* MUTEX_STATIC_LRU or NULL */
55388 sqlite3_mutex *mutex; /* Mutex for accessing the following: */
56378 SQLITE_PRIVATE sqlite3_mutex *sqlite3Pcache1Mutex(void){
69962 sqlite3_mutex *mutex; /* Non-recursive mutex required to access this object */
73075 sqlite3_mutex *mutexOpen = 0; /* Prevents a race condition. Ticket #3537 */
73132 MUTEX_LOGIC( sqlite3_mutex *mutexShared; )
73278 MUTEX_LOGIC( sqlite3_mutex *mutexShared; )
73368 MUTEX_LOGIC( sqlite3_mutex *pMainMtx; )
90531 sqlite3_mutex *mutex;
136617 sqlite3_mutex *(*mutex_alloc)(int);
136618 void (*mutex_enter)(sqlite3_mutex*);
136619 void (*mutex_free)(sqlite3_mutex*);
136620 void (*mutex_leave)(sqlite3_mutex*);
136621 int (*mutex_try)(sqlite3_mutex*);
136655 sqlite3_mutex *(*db_mutex)(sqlite3*);
137936 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MAIN);
137974 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MAIN);
138004 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MAIN);
138034 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MAIN);
179975 MUTEX_LOGIC( sqlite3_mutex *pMainMtx; ) /* The main static mutex */
180656 SQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3 *db){
218548 sqlite3_mutex *mutex; /* Mutex to protect pMain */