Lines Matching refs:sqlite3_mutex
1343 ** The mutex module within SQLite defines [sqlite3_mutex] to be an
1345 ** at the internal representation of an [sqlite3_mutex]. It only
1346 ** deals with pointers to the [sqlite3_mutex] object.
1350 typedef struct sqlite3_mutex sqlite3_mutex;
5931 SQLITE_API sqlite3_mutex *sqlite3_mutex_alloc(int);
5932 SQLITE_API void sqlite3_mutex_free(sqlite3_mutex*);
5933 SQLITE_API void sqlite3_mutex_enter(sqlite3_mutex*);
5934 SQLITE_API int sqlite3_mutex_try(sqlite3_mutex*);
5935 SQLITE_API void sqlite3_mutex_leave(sqlite3_mutex*);
6006 sqlite3_mutex *(*xMutexAlloc)(int);
6007 void (*xMutexFree)(sqlite3_mutex *);
6008 void (*xMutexEnter)(sqlite3_mutex *);
6009 int (*xMutexTry)(sqlite3_mutex *);
6010 void (*xMutexLeave)(sqlite3_mutex *);
6011 int (*xMutexHeld)(sqlite3_mutex *);
6012 int (*xMutexNotheld)(sqlite3_mutex *);
6045 SQLITE_API int sqlite3_mutex_held(sqlite3_mutex*);
6046 SQLITE_API int sqlite3_mutex_notheld(sqlite3_mutex*);
6073 ** ^This interface returns a pointer the [sqlite3_mutex] object that
6079 SQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3*);
9285 #define sqlite3_mutex_alloc(X) ((sqlite3_mutex*)8)
9292 #define sqlite3MutexAlloc(X) ((sqlite3_mutex*)8)
9469 sqlite3_mutex *mutex; /* Connection mutex */
11107 sqlite3_mutex *pInitMutex; /* Mutex used by sqlite3_initialize() */
11266 SQLITE_PRIVATE sqlite3_mutex *sqlite3MutexAlloc(int);
13638 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER);
14590 sqlite3_mutex *mutex;
14634 sqlite3_mutex *mutex = 0;
14659 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER);
15056 sqlite3_mutex *mutex;
15615 sqlite3_mutex *mutex;
16291 sqlite3_mutex *mutex;
16853 SQLITE_API sqlite3_mutex *sqlite3_mutex_alloc(int id){
16860 SQLITE_PRIVATE sqlite3_mutex *sqlite3MutexAlloc(int id){
16871 SQLITE_API void sqlite3_mutex_free(sqlite3_mutex *p){
16881 SQLITE_API void sqlite3_mutex_enter(sqlite3_mutex *p){
16891 SQLITE_API int sqlite3_mutex_try(sqlite3_mutex *p){
16905 SQLITE_API void sqlite3_mutex_leave(sqlite3_mutex *p){
16916 SQLITE_API int sqlite3_mutex_held(sqlite3_mutex *p){
16919 SQLITE_API int sqlite3_mutex_notheld(sqlite3_mutex *p){
16966 static sqlite3_mutex *noopMutexAlloc(int id){
16968 return (sqlite3_mutex*)8;
16970 static void noopMutexFree(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; }
16971 static void noopMutexEnter(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; }
16972 static int noopMutexTry(sqlite3_mutex *p){
16976 static void noopMutexLeave(sqlite3_mutex *p){ UNUSED_PARAMETER(p); return; }
17015 static int debugMutexHeld(sqlite3_mutex *pX){
17019 static int debugMutexNotheld(sqlite3_mutex *pX){
17035 static sqlite3_mutex *debugMutexAlloc(int id){
17056 return (sqlite3_mutex*)pNew;
17062 static void debugMutexFree(sqlite3_mutex *pX){
17080 static void debugMutexEnter(sqlite3_mutex *pX){
17085 static int debugMutexTry(sqlite3_mutex *pX){
17098 static void debugMutexLeave(sqlite3_mutex *pX){
17165 struct sqlite3_mutex {
17227 static sqlite3_mutex *os2MutexAlloc(int iType){
17228 sqlite3_mutex *p = NULL;
17244 static sqlite3_mutex staticMutexes[6] = {
17295 static void os2MutexFree(sqlite3_mutex *p){
17313 static int os2MutexHeld(sqlite3_mutex *p){
17324 static int os2MutexNotheld(sqlite3_mutex *p){
17335 static void os2MutexTrace(sqlite3_mutex *p, char *pAction){
17355 static void os2MutexEnter(sqlite3_mutex *p){
17362 static int os2MutexTry(sqlite3_mutex *p){
17380 static void os2MutexLeave(sqlite3_mutex *p){
17438 ** The sqlite3_mutex.id, sqlite3_mutex.nRef, and sqlite3_mutex.owner fields
17451 struct sqlite3_mutex {
17483 static int pthreadMutexHeld(sqlite3_mutex *p){
17486 static int pthreadMutexNotheld(sqlite3_mutex *p){
17539 static sqlite3_mutex *pthreadMutexAlloc(int iType){
17540 static sqlite3_mutex staticMutexes[] = {
17548 sqlite3_mutex *p;
17600 static void pthreadMutexFree(sqlite3_mutex *p){
17618 static void pthreadMutexEnter(sqlite3_mutex *p){
17660 static int pthreadMutexTry(sqlite3_mutex *p){
17717 static void pthreadMutexLeave(sqlite3_mutex *p){
17788 struct sqlite3_mutex {
17843 static int winMutexHeld(sqlite3_mutex *p){
17846 static int winMutexNotheld2(sqlite3_mutex *p, DWORD tid){
17849 static int winMutexNotheld(sqlite3_mutex *p){
17859 static sqlite3_mutex winMutex_staticMutexes[6] = {
17949 static sqlite3_mutex *winMutexAlloc(int iType){
17950 sqlite3_mutex *p;
17984 static void winMutexFree(sqlite3_mutex *p){
18003 static void winMutexEnter(sqlite3_mutex *p){
18018 static int winMutexTry(sqlite3_mutex *p){
18058 static void winMutexLeave(sqlite3_mutex *p){
18144 sqlite3_mutex *mutex; /* Mutex to serialize access */
20015 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_PRNG);
23211 sqlite3_mutex *mutex; /* Mutex to access this object */
28190 sqlite3_mutex *mutex; /* Mutex to access this object */
33303 sqlite3_mutex *mutex; /* Mutex to access this object */
35824 sqlite3_mutex *mutex; /* MUTEX_STATIC_LRU or NULL */
35961 sqlite3_mutex *mutex; /* Mutex for accessing the following: */
47771 sqlite3_mutex *mutex; /* Non-recursive mutex required to access this object */
49970 sqlite3_mutex *mutexOpen = 0; /* Prevents a race condition. Ticket #3537 */
50028 sqlite3_mutex *mutexShared;
50144 sqlite3_mutex *mutexShared;
50228 sqlite3_mutex *pMaster;
56991 sqlite3_mutex *mutex; /* Mutex to protect source database */
61619 sqlite3_mutex *mutex;
61665 sqlite3_mutex *mutex = ((Vdbe*)pStmt)->db->mutex;
89061 sqlite3_mutex *(*mutex_alloc)(int);
89062 void (*mutex_enter)(sqlite3_mutex*);
89063 void (*mutex_free)(sqlite3_mutex*);
89064 void (*mutex_leave)(sqlite3_mutex*);
89065 int (*mutex_try)(sqlite3_mutex*);
89095 sqlite3_mutex *(*db_mutex)(sqlite3*);
89875 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER);
89909 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER);
89938 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER);
110253 sqlite3_mutex *pMaster; /* The main static mutex */
110664 SQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3 *db){