Lines Matching refs:sqlite3_mutex
40 struct sqlite3_mutex { struct
41 sqlite3_mutex *pReal; argument
53 sqlite3_mutex aStatic[STATIC_MUTEXES]; /* The static mutexes */ argument
57 static int counterMutexHeld(sqlite3_mutex *p){ in counterMutexHeld()
62 static int counterMutexNotheld(sqlite3_mutex *p){ in counterMutexNotheld()
90 static sqlite3_mutex *counterMutexAlloc(int eType){ in counterMutexAlloc()
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()
129 static void counterMutexEnter(sqlite3_mutex *p){ in counterMutexEnter()
140 static int counterMutexTry(sqlite3_mutex *p){ in counterMutexTry()
151 static void counterMutexLeave(sqlite3_mutex *p){ in counterMutexLeave()
322 sqlite3_mutex *p = sqlite3_mutex_alloc(SQLITE_MUTEX_FAST); in test_alloc_mutex()
392 static sqlite3_mutex *getStaticMutexPointer( in getStaticMutexPointer()
410 sqlite3_mutex *pMutex; in test_enter_static_mutex()
429 sqlite3_mutex *pMutex; in test_leave_static_mutex()