Lines Matching defs:sqlite3_mutex

1570 ** The mutex module within SQLite defines [sqlite3_mutex] to be an
1572 ** at the internal representation of an [sqlite3_mutex]. It only
1573 ** deals with pointers to the [sqlite3_mutex] object.
1577 typedef struct sqlite3_mutex sqlite3_mutex;
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*);
8550 ** ^This interface returns a pointer the [sqlite3_mutex] object that
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;
24775 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MAIN);
26402 sqlite3_mutex *mutex;
26446 MUTEX_LOGIC(sqlite3_mutex *mutex;)
26474 MUTEX_LOGIC(sqlite3_mutex *mutex;)
27020 sqlite3_mutex *mutex;
27580 sqlite3_mutex *mutex;
28257 sqlite3_mutex *mutex;
28799 sqlite3_mutex *mutex;
28811 static int checkMutexHeld(sqlite3_mutex *p){
28814 static int checkMutexNotheld(sqlite3_mutex *p){
28834 static sqlite3_mutex *checkMutexAlloc(int iType){
28867 return (sqlite3_mutex*)p;
28873 static void checkMutexFree(sqlite3_mutex *p){
28896 static void checkMutexEnter(sqlite3_mutex *p){
28912 static int checkMutexTry(sqlite3_mutex *p){
28920 static void checkMutexLeave(sqlite3_mutex *p){
28949 SQLITE_PRIVATE void sqlite3MutexWarnOnContention(sqlite3_mutex *p){
29023 SQLITE_API sqlite3_mutex *sqlite3_mutex_alloc(int id){
29032 SQLITE_PRIVATE sqlite3_mutex *sqlite3MutexAlloc(int id){
29044 SQLITE_API void sqlite3_mutex_free(sqlite3_mutex *p){
29055 SQLITE_API void sqlite3_mutex_enter(sqlite3_mutex *p){
29066 SQLITE_API int sqlite3_mutex_try(sqlite3_mutex *p){
29081 SQLITE_API void sqlite3_mutex_leave(sqlite3_mutex *p){
29093 SQLITE_API int sqlite3_mutex_held(sqlite3_mutex *p){
29097 SQLITE_API int sqlite3_mutex_notheld(sqlite3_mutex *p){
29146 static sqlite3_mutex *noopMutexAlloc(int id){
29148 return (sqlite3_mutex*)8;
29150 static void noopMutexFree(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; }
29151 static void noopMutexEnter(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; }
29152 static int noopMutexTry(sqlite3_mutex *p){
29156 static void noopMutexLeave(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; }
29195 static int debugMutexHeld(sqlite3_mutex *pX){
29199 static int debugMutexNotheld(sqlite3_mutex *pX){
29215 static sqlite3_mutex *debugMutexAlloc(int id){
29240 return (sqlite3_mutex*)pNew;
29246 static void debugMutexFree(sqlite3_mutex *pX){
29269 static void debugMutexEnter(sqlite3_mutex *pX){
29274 static int debugMutexTry(sqlite3_mutex *pX){
29287 static void debugMutexLeave(sqlite3_mutex *pX){
29352 ** The sqlite3_mutex.id, sqlite3_mutex.nRef, and sqlite3_mutex.owner fields
29365 struct sqlite3_mutex {
29402 static int pthreadMutexHeld(sqlite3_mutex *p){
29405 static int pthreadMutexNotheld(sqlite3_mutex *p){
29477 static sqlite3_mutex *pthreadMutexAlloc(int iType){
29478 static sqlite3_mutex staticMutexes[] = {
29492 sqlite3_mutex *p;
29548 static void pthreadMutexFree(sqlite3_mutex *p){
29575 static void pthreadMutexEnter(sqlite3_mutex *p){
29617 static int pthreadMutexTry(sqlite3_mutex *p){
29674 static void pthreadMutexLeave(sqlite3_mutex *p){
29850 struct sqlite3_mutex {
29879 static int winMutexHeld(sqlite3_mutex *p){
29883 static int winMutexNotheld2(sqlite3_mutex *p, DWORD tid){
29887 static int winMutexNotheld(sqlite3_mutex *p){
29913 static sqlite3_mutex winMutex_staticMutexes[] = {
30025 static sqlite3_mutex *winMutexAlloc(int iType){
30026 sqlite3_mutex *p;
30073 static void winMutexFree(sqlite3_mutex *p){
30097 static void winMutexEnter(sqlite3_mutex *p){
30120 static int winMutexTry(sqlite3_mutex *p){
30170 static void winMutexLeave(sqlite3_mutex *p){
30261 sqlite3_mutex *mutex; /* Mutex to serialize access */
30277 SQLITE_PRIVATE sqlite3_mutex *sqlite3MallocMutex(void){
33979 sqlite3_mutex *mutex;
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 */