Home
last modified time | relevance | path

Searched refs:sqlite3_mutex (Results 1 – 25 of 32) sorted by relevance

12

/sqlite-3.40.0/src/
H A Dmutex.c57 sqlite3_mutex *mutex;
69 static int checkMutexHeld(sqlite3_mutex *p){ in checkMutexHeld()
125 return (sqlite3_mutex*)p; in checkMutexAlloc()
170 static int checkMutexTry(sqlite3_mutex *p){ in checkMutexTry()
281 sqlite3_mutex *sqlite3_mutex_alloc(int id){ in sqlite3_mutex_alloc()
290 sqlite3_mutex *sqlite3MutexAlloc(int id){ in sqlite3MutexAlloc()
302 void sqlite3_mutex_free(sqlite3_mutex *p){ in sqlite3_mutex_free()
313 void sqlite3_mutex_enter(sqlite3_mutex *p){ in sqlite3_mutex_enter()
324 int sqlite3_mutex_try(sqlite3_mutex *p){ in sqlite3_mutex_try()
339 void sqlite3_mutex_leave(sqlite3_mutex *p){ in sqlite3_mutex_leave()
[all …]
H A Dmutex_noop.c40 static sqlite3_mutex *noopMutexAlloc(int id){ in noopMutexAlloc()
42 return (sqlite3_mutex*)8; in noopMutexAlloc()
46 static int noopMutexTry(sqlite3_mutex *p){ in noopMutexTry()
89 static int debugMutexHeld(sqlite3_mutex *pX){ in debugMutexHeld()
93 static int debugMutexNotheld(sqlite3_mutex *pX){ in debugMutexNotheld()
109 static sqlite3_mutex *debugMutexAlloc(int id){ in debugMutexAlloc()
134 return (sqlite3_mutex*)pNew; in debugMutexAlloc()
140 static void debugMutexFree(sqlite3_mutex *pX){ in debugMutexFree()
163 static void debugMutexEnter(sqlite3_mutex *pX){ in debugMutexEnter()
168 static int debugMutexTry(sqlite3_mutex *pX){ in debugMutexTry()
[all …]
H A Dtest_mutex.c40 struct sqlite3_mutex { struct
41 sqlite3_mutex *pReal; argument
57 static int counterMutexHeld(sqlite3_mutex *p){ in counterMutexHeld()
91 sqlite3_mutex *pReal; in counterMutexAlloc()
92 sqlite3_mutex *pRet = 0; in counterMutexAlloc()
102 pRet = (sqlite3_mutex *)malloc(sizeof(sqlite3_mutex)); in counterMutexAlloc()
118 static void counterMutexFree(sqlite3_mutex *p){ in counterMutexFree()
140 static int counterMutexTry(sqlite3_mutex *p){ in counterMutexTry()
392 static sqlite3_mutex *getStaticMutexPointer( in getStaticMutexPointer()
410 sqlite3_mutex *pMutex; in test_enter_static_mutex()
[all …]
H A Dmutex_w32.c37 struct sqlite3_mutex { struct
66 static int winMutexHeld(sqlite3_mutex *p){ in winMutexHeld() argument
70 static int winMutexNotheld2(sqlite3_mutex *p, DWORD tid){ in winMutexNotheld2()
74 static int winMutexNotheld(sqlite3_mutex *p){ in winMutexNotheld()
100 static sqlite3_mutex winMutex_staticMutexes[] = {
212 static sqlite3_mutex *winMutexAlloc(int iType){ in winMutexAlloc()
213 sqlite3_mutex *p; in winMutexAlloc()
260 static void winMutexFree(sqlite3_mutex *p){ in winMutexFree()
284 static void winMutexEnter(sqlite3_mutex *p){ in winMutexEnter()
307 static int winMutexTry(sqlite3_mutex *p){ in winMutexTry()
[all …]
H A Dmutex_unix.c41 struct sqlite3_mutex { struct
78 static int pthreadMutexHeld(sqlite3_mutex *p){ in pthreadMutexHeld()
81 static int pthreadMutexNotheld(sqlite3_mutex *p){ in pthreadMutexNotheld()
153 static sqlite3_mutex *pthreadMutexAlloc(int iType){ in pthreadMutexAlloc()
154 static sqlite3_mutex staticMutexes[] = { in pthreadMutexAlloc()
168 sqlite3_mutex *p; in pthreadMutexAlloc()
224 static void pthreadMutexFree(sqlite3_mutex *p){ in pthreadMutexFree()
251 static void pthreadMutexEnter(sqlite3_mutex *p){ in pthreadMutexEnter()
293 static int pthreadMutexTry(sqlite3_mutex *p){ in pthreadMutexTry()
350 static void pthreadMutexLeave(sqlite3_mutex *p){ in pthreadMutexLeave()
H A Dtest_init.c89 static sqlite3_mutex *wrMutexAlloc(int e){ in wrMutexAlloc()
92 static void wrMutexFree(sqlite3_mutex *p){ in wrMutexFree()
95 static void wrMutexEnter(sqlite3_mutex *p){ in wrMutexEnter()
98 static int wrMutexTry(sqlite3_mutex *p){ in wrMutexTry()
101 static void wrMutexLeave(sqlite3_mutex *p){ in wrMutexLeave()
104 static int wrMutexHeld(sqlite3_mutex *p){ in wrMutexHeld()
107 static int wrMutexNotheld(sqlite3_mutex *p){ in wrMutexNotheld()
H A Dmutex.h57 #define sqlite3_mutex_alloc(X) ((sqlite3_mutex*)8)
64 #define sqlite3MutexAlloc(X) ((sqlite3_mutex*)8)
70 int sqlite3_mutex_held(sqlite3_mutex*);
H A Dsqlite3ext.h184 sqlite3_mutex *(*mutex_alloc)(int);
185 void (*mutex_enter)(sqlite3_mutex*);
186 void (*mutex_free)(sqlite3_mutex*);
187 void (*mutex_leave)(sqlite3_mutex*);
188 int (*mutex_try)(sqlite3_mutex*);
222 sqlite3_mutex *(*db_mutex)(sqlite3*);
H A Dloadext.c777 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MAIN); in sqlite3_auto_extension()
815 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MAIN); in sqlite3_cancel_auto_extension()
842 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MAIN); in sqlite3_reset_auto_extension()
872 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MAIN); in sqlite3AutoLoadExtensions()
H A Dos.c365 sqlite3_mutex *mutex; in sqlite3_vfs_find()
409 MUTEX_LOGIC(sqlite3_mutex *mutex;) in sqlite3_vfs_register()
437 MUTEX_LOGIC(sqlite3_mutex *mutex;) in sqlite3_vfs_unregister()
H A Dtest_sqllog.c122 sqlite3_mutex *mutex; /* Recursive mutex */
470 sqlite3_mutex *mainmtx = sqlite3_mutex_alloc(SQLITE_MUTEX_STATIC_MAIN); in testSqllog()
H A Dmemdb.c75 sqlite3_mutex *pMutex; /* Used by shared stores only */
214 sqlite3_mutex *pVfsMutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_VFS1); in memdbClose()
516 sqlite3_mutex *pVfsMutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_VFS1); in memdbOpen()
H A Dpcache1.c159 sqlite3_mutex *mutex; /* MUTEX_STATIC_LRU or NULL */
232 sqlite3_mutex *mutex; /* Mutex for accessing the following: */
1222 sqlite3_mutex *sqlite3Pcache1Mutex(void){ in sqlite3Pcache1Mutex()
H A Drandom.c76 sqlite3_mutex *mutex; in sqlite3_randomness()
H A Dmalloc.c46 sqlite3_mutex *mutex; /* Mutex to serialize access */
62 sqlite3_mutex *sqlite3MallocMutex(void){ in sqlite3MallocMutex()
H A DbtreeInt.h450 sqlite3_mutex *mutex; /* Non-recursive mutex required to access this object */
H A DsqliteInt.h1542 sqlite3_mutex *mutex; /* Connection mutex */
4027 sqlite3_mutex *pInitMutex; /* Mutex used by sqlite3_initialize() */
4457 sqlite3_mutex *sqlite3MutexAlloc(int);
4474 sqlite3_mutex *sqlite3Pcache1Mutex(void);
4475 sqlite3_mutex *sqlite3MallocMutex(void);
4478 void sqlite3MutexWarnOnContention(sqlite3_mutex*);
H A Dstatus.c140 sqlite3_mutex *pMutex; in sqlite3_status64()
H A Dmem2.c87 sqlite3_mutex *mutex;
H A Dmem5.c103 sqlite3_mutex *mutex;
H A Dtest4.c64 sqlite3_mutex *pMutex = sqlite3_mutex_alloc(SQLITE_MUTEX_STATIC_APP1); in test_barrier()
H A Dmem3.c116 sqlite3_mutex *mutex;
H A Dos_win.c1293 MUTEX_LOGIC( sqlite3_mutex *pMainMtx; ) /* The main static mutex */ in sqlite3_win32_reset_heap()
1294 MUTEX_LOGIC( sqlite3_mutex *pMem; ) /* The memsys static mutex */ in sqlite3_win32_reset_heap()
3690 static sqlite3_mutex *winBigLock = 0;
3727 sqlite3_mutex *mutex; /* Mutex to access this object */
5767 MUTEX_LOGIC( sqlite3_mutex *pMutex; )
H A Dtest_quota.c38 #define sqlite3_mutex_alloc(X) ((sqlite3_mutex*)8)
177 sqlite3_mutex *pMutex;
/sqlite-3.40.0/ext/misc/
H A Dvfslog.c247 sqlite3_mutex *pMutex; in vlogLogClose()
266 sqlite3_mutex *pMutex; in vlogLogOpen()

12