Lines Matching refs:mutex

57   sqlite3_mutex *mutex;  member
70 return pGlobalMutexMethods->xMutexHeld(((CheckMutex*)p)->mutex); in checkMutexHeld()
73 return pGlobalMutexMethods->xMutexNotheld(((CheckMutex*)p)->mutex); in checkMutexNotheld()
115 if( p->mutex==0 ){ in checkMutexAlloc()
116 p->mutex = pGlobalMutexMethods->xMutexAlloc(iType); in checkMutexAlloc()
117 if( p->mutex==0 ){ in checkMutexAlloc()
141 pGlobalMutexMethods->xMutexFree(pCheck->mutex); in checkMutexFree()
157 if( SQLITE_OK==pGlobalMutexMethods->xMutexTry(pCheck->mutex) ){ in checkMutexEnter()
164 pGlobalMutexMethods->xMutexEnter(pCheck->mutex); in checkMutexEnter()
172 return pGlobalMutexMethods->xMutexTry(pCheck->mutex); in checkMutexTry()
180 pGlobalMutexMethods->xMutexLeave(pCheck->mutex); in checkMutexLeave()
208 if( sqlite3GlobalConfig.mutex.xMutexAlloc==checkMutexAlloc ){ in sqlite3MutexWarnOnContention()
221 if( !sqlite3GlobalConfig.mutex.xMutexAlloc ){ in sqlite3MutexInit()
228 sqlite3_mutex_methods *pTo = &sqlite3GlobalConfig.mutex; in sqlite3MutexInit()
250 assert( sqlite3GlobalConfig.mutex.xMutexInit ); in sqlite3MutexInit()
251 rc = sqlite3GlobalConfig.mutex.xMutexInit(); in sqlite3MutexInit()
267 if( sqlite3GlobalConfig.mutex.xMutexEnd ){ in sqlite3MutexEnd()
268 rc = sqlite3GlobalConfig.mutex.xMutexEnd(); in sqlite3MutexEnd()
286 assert( sqlite3GlobalConfig.mutex.xMutexAlloc ); in sqlite3_mutex_alloc()
287 return sqlite3GlobalConfig.mutex.xMutexAlloc(id); in sqlite3_mutex_alloc()
295 assert( sqlite3GlobalConfig.mutex.xMutexAlloc ); in sqlite3MutexAlloc()
296 return sqlite3GlobalConfig.mutex.xMutexAlloc(id); in sqlite3MutexAlloc()
304 assert( sqlite3GlobalConfig.mutex.xMutexFree ); in sqlite3_mutex_free()
305 sqlite3GlobalConfig.mutex.xMutexFree(p); in sqlite3_mutex_free()
315 assert( sqlite3GlobalConfig.mutex.xMutexEnter ); in sqlite3_mutex_enter()
316 sqlite3GlobalConfig.mutex.xMutexEnter(p); in sqlite3_mutex_enter()
327 assert( sqlite3GlobalConfig.mutex.xMutexTry ); in sqlite3_mutex_try()
328 return sqlite3GlobalConfig.mutex.xMutexTry(p); in sqlite3_mutex_try()
341 assert( sqlite3GlobalConfig.mutex.xMutexLeave ); in sqlite3_mutex_leave()
342 sqlite3GlobalConfig.mutex.xMutexLeave(p); in sqlite3_mutex_leave()
352 assert( p==0 || sqlite3GlobalConfig.mutex.xMutexHeld ); in sqlite3_mutex_held()
353 return p==0 || sqlite3GlobalConfig.mutex.xMutexHeld(p); in sqlite3_mutex_held()
356 assert( p==0 || sqlite3GlobalConfig.mutex.xMutexNotheld ); in sqlite3_mutex_notheld()
357 return p==0 || sqlite3GlobalConfig.mutex.xMutexNotheld(p); in sqlite3_mutex_notheld()