Lines Matching refs:mutex

16298   sqlite3_mutex *mutex;         /* Connection mutex */  member
18328 sqlite3_mutex_methods mutex; /* Low-level mutex interface */ member
20745 sqlite3_mutex_enter(db->mutex); in sqlite3_db_status()
20912 sqlite3_mutex_leave(db->mutex); in sqlite3_db_status()
21435 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER); in osLocaltime() local
21437 sqlite3_mutex_enter(mutex); in osLocaltime()
21443 sqlite3_mutex_leave(mutex); in osLocaltime()
22510 sqlite3_mutex *mutex; in sqlite3_vfs_find() local
22517 mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER); in sqlite3_vfs_find()
22519 sqlite3_mutex_enter(mutex); in sqlite3_vfs_find()
22524 sqlite3_mutex_leave(mutex); in sqlite3_vfs_find()
22554 MUTEX_LOGIC(sqlite3_mutex *mutex;) in sqlite3_vfs_register()
22563 MUTEX_LOGIC( mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER); ) in sqlite3_vfs_register()
22564 sqlite3_mutex_enter(mutex); in sqlite3_vfs_register()
22574 sqlite3_mutex_leave(mutex); in sqlite3_vfs_register()
22582 MUTEX_LOGIC(sqlite3_mutex *mutex;) in sqlite3_vfs_unregister()
22587 MUTEX_LOGIC( mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER); ) in sqlite3_vfs_unregister()
22588 sqlite3_mutex_enter(mutex); in sqlite3_vfs_unregister()
22590 sqlite3_mutex_leave(mutex); in sqlite3_vfs_unregister()
23128 sqlite3_mutex *mutex; member
23235 mem.mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MEM); in sqlite3MemInit()
23245 mem.mutex = 0; in sqlite3MemShutdown()
23291 sqlite3_mutex_enter(mem.mutex); in sqlite3MemMalloc()
23335 sqlite3_mutex_leave(mem.mutex); in sqlite3MemMalloc()
23347 || mem.mutex!=0 ); in sqlite3MemFree()
23351 sqlite3_mutex_enter(mem.mutex); in sqlite3MemFree()
23372 sqlite3_mutex_leave(mem.mutex); in sqlite3MemFree()
23496 sqlite3_mutex_enter(mem.mutex); in sqlite3MemdebugSettitle()
23501 sqlite3_mutex_leave(mem.mutex); in sqlite3MemdebugSettitle()
23688 sqlite3_mutex *mutex; member
23722 assert( sqlite3_mutex_held(mem3.mutex) ); in memsys3UnlinkFromList()
23741 assert( sqlite3_mutex_held(mem3.mutex) ); in memsys3Unlink()
23760 assert( sqlite3_mutex_held(mem3.mutex) ); in memsys3LinkIntoList()
23775 assert( sqlite3_mutex_held(mem3.mutex) ); in memsys3Link()
23795 if( sqlite3GlobalConfig.bMemstat==0 && mem3.mutex==0 ){ in memsys3Enter()
23796 mem3.mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MEM); in memsys3Enter()
23798 sqlite3_mutex_enter(mem3.mutex); in memsys3Enter()
23801 sqlite3_mutex_leave(mem3.mutex); in memsys3Leave()
23810 assert( sqlite3_mutex_held(mem3.mutex) ); in memsys3OutOfMemory()
23811 sqlite3_mutex_leave(mem3.mutex); in memsys3OutOfMemory()
23813 sqlite3_mutex_enter(mem3.mutex); in memsys3OutOfMemory()
23826 assert( sqlite3_mutex_held(mem3.mutex) ); in memsys3Checkout()
23843 assert( sqlite3_mutex_held(mem3.mutex) ); in memsys3FromMaster()
23890 assert( sqlite3_mutex_held(mem3.mutex) ); in memsys3Merge()
23931 assert( sqlite3_mutex_held(mem3.mutex) ); in memsys3MallocUnsafe()
24012 assert( sqlite3_mutex_held(mem3.mutex) ); in memsys3FreeUnsafe()
24151 mem3.mutex = 0; in memsys3Shutdown()
24223 sqlite3_mutex_leave(mem3.mutex); in sqlite3Memsys3Dump()
24365 sqlite3_mutex *mutex; member
24435 assert( sqlite3_mutex_held(mem5.mutex) ); in memsys5Link()
24453 sqlite3_mutex_enter(mem5.mutex); in memsys5Enter()
24456 sqlite3_mutex_leave(mem5.mutex); in memsys5Leave()
24722 mem5.mutex = 0; in memsys5Init()
24761 mem5.mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MEM); in memsys5Init()
24772 mem5.mutex = 0; in memsys5Shutdown()
24898 sqlite3_mutex *mutex; member
24911 return pGlobalMutexMethods->xMutexHeld(((CheckMutex*)p)->mutex); in checkMutexHeld()
24914 return pGlobalMutexMethods->xMutexNotheld(((CheckMutex*)p)->mutex); in checkMutexNotheld()
24956 if( p->mutex==0 ){ in checkMutexAlloc()
24957 p->mutex = pGlobalMutexMethods->xMutexAlloc(iType); in checkMutexAlloc()
24958 if( p->mutex==0 ){ in checkMutexAlloc()
24982 pGlobalMutexMethods->xMutexFree(pCheck->mutex); in checkMutexFree()
24998 if( SQLITE_OK==pGlobalMutexMethods->xMutexTry(pCheck->mutex) ){ in checkMutexEnter()
25005 pGlobalMutexMethods->xMutexEnter(pCheck->mutex); in checkMutexEnter()
25013 return pGlobalMutexMethods->xMutexTry(pCheck->mutex); in checkMutexTry()
25021 pGlobalMutexMethods->xMutexLeave(pCheck->mutex); in checkMutexLeave()
25049 if( sqlite3GlobalConfig.mutex.xMutexAlloc==checkMutexAlloc ){ in sqlite3MutexWarnOnContention()
25062 if( !sqlite3GlobalConfig.mutex.xMutexAlloc ){ in sqlite3MutexInit()
25069 sqlite3_mutex_methods *pTo = &sqlite3GlobalConfig.mutex; in sqlite3MutexInit()
25091 assert( sqlite3GlobalConfig.mutex.xMutexInit ); in sqlite3MutexInit()
25092 rc = sqlite3GlobalConfig.mutex.xMutexInit(); in sqlite3MutexInit()
25107 if( sqlite3GlobalConfig.mutex.xMutexEnd ){ in sqlite3MutexEnd()
25108 rc = sqlite3GlobalConfig.mutex.xMutexEnd(); in sqlite3MutexEnd()
25126 assert( sqlite3GlobalConfig.mutex.xMutexAlloc ); in sqlite3_mutex_alloc()
25127 return sqlite3GlobalConfig.mutex.xMutexAlloc(id); in sqlite3_mutex_alloc()
25135 assert( sqlite3GlobalConfig.mutex.xMutexAlloc ); in sqlite3MutexAlloc()
25136 return sqlite3GlobalConfig.mutex.xMutexAlloc(id); in sqlite3MutexAlloc()
25144 assert( sqlite3GlobalConfig.mutex.xMutexFree ); in sqlite3_mutex_free()
25145 sqlite3GlobalConfig.mutex.xMutexFree(p); in sqlite3_mutex_free()
25155 assert( sqlite3GlobalConfig.mutex.xMutexEnter ); in sqlite3_mutex_enter()
25156 sqlite3GlobalConfig.mutex.xMutexEnter(p); in sqlite3_mutex_enter()
25167 assert( sqlite3GlobalConfig.mutex.xMutexTry ); in sqlite3_mutex_try()
25168 return sqlite3GlobalConfig.mutex.xMutexTry(p); in sqlite3_mutex_try()
25181 assert( sqlite3GlobalConfig.mutex.xMutexLeave ); in sqlite3_mutex_leave()
25182 sqlite3GlobalConfig.mutex.xMutexLeave(p); in sqlite3_mutex_leave()
25192 assert( p==0 || sqlite3GlobalConfig.mutex.xMutexHeld ); in sqlite3_mutex_held()
25193 return p==0 || sqlite3GlobalConfig.mutex.xMutexHeld(p); in sqlite3_mutex_held()
25196 assert( p==0 || sqlite3GlobalConfig.mutex.xMutexNotheld ); in sqlite3_mutex_notheld()
25197 return p==0 || sqlite3GlobalConfig.mutex.xMutexNotheld(p); in sqlite3_mutex_notheld()
25464 pthread_mutex_t mutex; /* Mutex controlling the lock */ member
25598 pthread_mutex_init(&p->mutex, 0); in pthreadMutexAlloc()
25604 pthread_mutex_init(&p->mutex, &recursiveAttr); in pthreadMutexAlloc()
25616 pthread_mutex_init(&p->mutex, 0); in pthreadMutexAlloc()
25652 pthread_mutex_destroy(&p->mutex); in pthreadMutexFree()
25692 pthread_mutex_lock(&p->mutex); in pthreadMutexEnter()
25701 pthread_mutex_lock(&p->mutex); in pthreadMutexEnter()
25735 }else if( pthread_mutex_trylock(&p->mutex)==0 ){ in pthreadMutexTry()
25747 if( pthread_mutex_trylock(&p->mutex)==0 ){ in pthreadMutexTry()
25782 pthread_mutex_unlock(&p->mutex); in pthreadMutexLeave()
25785 pthread_mutex_unlock(&p->mutex); in pthreadMutexLeave()
26147 CRITICAL_SECTION mutex; /* Mutex controlling the lock */
26242 InitializeCriticalSectionEx(&winMutex_staticMutexes[i].mutex, 0, 0);
26244 InitializeCriticalSection(&winMutex_staticMutexes[i].mutex);
26265 DeleteCriticalSection(&winMutex_staticMutexes[i].mutex);
26336 InitializeCriticalSectionEx(&p->mutex, 0, 0);
26338 InitializeCriticalSection(&p->mutex);
26373 DeleteCriticalSection(&p->mutex);
26404 EnterCriticalSection(&p->mutex);
26441 if( winMutex_isNt && TryEnterCriticalSection(&p->mutex) ){
26479 LeaveCriticalSection(&p->mutex);
26550 sqlite3_mutex *mutex; /* Mutex to serialize access */
26566 return mem0.mutex;
26599 sqlite3_mutex_enter(mem0.mutex);
26602 sqlite3_mutex_leave(mem0.mutex);
26608 sqlite3_mutex_leave(mem0.mutex);
26627 mem0.mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MEM);
26682 sqlite3_mutex_leave(mem0.mutex);
26684 sqlite3_mutex_enter(mem0.mutex);
26694 assert( sqlite3_mutex_held(mem0.mutex) );
26750 sqlite3_mutex_enter(mem0.mutex);
26752 sqlite3_mutex_leave(mem0.mutex);
26811 assert( sqlite3_mutex_held(db->mutex) );
26829 sqlite3_mutex_enter(mem0.mutex);
26833 sqlite3_mutex_leave(mem0.mutex);
26853 assert( db==0 || sqlite3_mutex_held(db->mutex) );
26878 assert( db==0 || sqlite3_mutex_held(db->mutex) );
26909 sqlite3_mutex_enter(mem0.mutex);
26925 sqlite3_mutex_leave(mem0.mutex);
27022 assert( sqlite3_mutex_held(db->mutex) );
27044 assert( sqlite3_mutex_held(db->mutex) );
27063 assert( sqlite3_mutex_held(db->mutex) );
27224 assert( sqlite3_mutex_held(db->mutex) );
29297 sqlite3_mutex *mutex;
29305 mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_PRNG);
29308 sqlite3_mutex_enter(mutex);
29311 sqlite3_mutex_leave(mutex);
29352 sqlite3_mutex_leave(mutex);
29870 assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) );
44302 sqlite3_mutex *mutex; /* Mutex to access this object */
44377 assert( pFile->nRef==0 || sqlite3_mutex_held(pFile->mutex) );
44426 if( p->mutex ){ sqlite3_mutex_free(p->mutex); }
44543 pShmNode->mutex = sqlite3_mutex_alloc(SQLITE_MUTEX_FAST);
44544 if( pShmNode->mutex==0 ){
44585 sqlite3_mutex_enter(pShmNode->mutex);
44588 sqlite3_mutex_leave(pShmNode->mutex);
44621 sqlite3_mutex_enter(pShmNode->mutex);
44628 sqlite3_mutex_leave(pShmNode->mutex);
44669 sqlite3_mutex_enter(pShmNode->mutex);
44742 sqlite3_mutex_leave(pShmNode->mutex);
44804 sqlite3_mutex_enter(pShmNode->mutex);
44921 sqlite3_mutex_leave(pShmNode->mutex);
47287 sqlite3_mutex_enter(db->mutex);
47323 sqlite3_mutex_leave(db->mutex);
48790 sqlite3_mutex *mutex; /* MUTEX_STATIC_LRU or NULL */
48863 sqlite3_mutex *mutex; /* Mutex for accessing the following: */
48884 # define pcache1EnterMutex(X) assert((X)->mutex==0)
48885 # define pcache1LeaveMutex(X) assert((X)->mutex==0)
48888 # define pcache1EnterMutex(X) sqlite3_mutex_enter((X)->mutex)
48889 # define pcache1LeaveMutex(X) sqlite3_mutex_leave((X)->mutex)
48977 assert( sqlite3_mutex_notheld(pcache1.grp.mutex) );
48979 sqlite3_mutex_enter(pcache1.mutex);
48989 sqlite3_mutex_leave(pcache1.mutex);
48999 sqlite3_mutex_enter(pcache1.mutex);
49002 sqlite3_mutex_leave(pcache1.mutex);
49017 sqlite3_mutex_enter(pcache1.mutex);
49025 sqlite3_mutex_leave(pcache1.mutex);
49033 sqlite3_mutex_enter(pcache1.mutex);
49035 sqlite3_mutex_leave(pcache1.mutex);
49067 assert( sqlite3_mutex_held(pCache->pGroup->mutex) );
49115 assert( sqlite3_mutex_held(p->pCache->pGroup->mutex) );
49184 assert( sqlite3_mutex_held(p->pGroup->mutex) );
49225 assert( sqlite3_mutex_held(pPage->pCache->pGroup->mutex) );
49250 assert( sqlite3_mutex_held(pCache->pGroup->mutex) );
49266 assert( sqlite3_mutex_held(pGroup->mutex) );
49294 assert( sqlite3_mutex_held(pCache->pGroup->mutex) );
49370 pcache1.grp.mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_LRU);
49371 pcache1.mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_PMEM);
49699 if( pCache->pGroup->mutex ){
49856 return pcache1.mutex;
49871 assert( sqlite3_mutex_notheld(pcache1.grp.mutex) );
49872 assert( sqlite3_mutex_notheld(pcache1.mutex) );
62615 sqlite3_mutex *mutex; /* Non-recursive mutex required to access this object */
62906 assert( sqlite3_mutex_notheld(p->pBt->mutex) );
62907 assert( sqlite3_mutex_held(p->db->mutex) );
62909 sqlite3_mutex_enter(p->pBt->mutex);
62921 assert( sqlite3_mutex_held(pBt->mutex) );
62922 assert( sqlite3_mutex_held(p->db->mutex) );
62925 sqlite3_mutex_leave(pBt->mutex);
62964 assert( sqlite3_mutex_held(p->db->mutex) );
62989 if( sqlite3_mutex_try(p->pBt->mutex)==SQLITE_OK ){
63021 assert( sqlite3_mutex_held(p->db->mutex) );
63041 assert( p->sharable==0 || p->locked==0 || sqlite3_mutex_held(p->pBt->mutex) );
63042 assert( p->sharable==0 || p->locked==0 || sqlite3_mutex_held(p->db->mutex) );
63067 assert( sqlite3_mutex_held(db->mutex) );
63083 assert( sqlite3_mutex_held(db->mutex) );
63102 if( !sqlite3_mutex_held(db->mutex) ){
63109 (p->wantToLock==0 || !sqlite3_mutex_held(p->pBt->mutex)) ){
63134 if( !sqlite3_mutex_held(db->mutex) ) return 0;
63669 return sqlite3_mutex_held(p->pBt->mutex);
63698 assert( sqlite3_mutex_held(pBt->mutex) );
63932 assert( sqlite3_mutex_held(pBt->mutex) );
64148 assert( sqlite3_mutex_held(pBt->mutex) );
64178 assert( sqlite3_mutex_held(pBt->mutex) );
64235 assert( sqlite3_mutex_held(pBt->mutex) );
64337 assert( sqlite3_mutex_held(pPage->pBt->mutex) );
64358 assert( sqlite3_mutex_held(pPage->pBt->mutex) );
64425 assert( sqlite3_mutex_held(pPage->pBt->mutex) );
64610 assert( sqlite3_mutex_held(pPage->pBt->mutex) );
64804 assert( sqlite3_mutex_held(pPage->pBt->mutex) );
64900 assert( sqlite3_mutex_held(pPage->pBt->mutex) );
64996 assert( sqlite3_mutex_held(pPage->pBt->mutex) );
65057 assert( sqlite3_mutex_held(pPage->pBt->mutex) );
65174 assert( sqlite3_mutex_held(pPage->pBt->mutex) );
65231 assert( sqlite3_mutex_held(pBt->mutex) );
65292 assert( sqlite3_mutex_held(pBt->mutex) );
65306 assert( sqlite3_mutex_held(pBt->mutex) );
65349 assert( sqlite3_mutex_held(pBt->mutex) );
65405 assert( sqlite3_mutex_held(pPage->pBt->mutex) );
65418 assert( sqlite3_mutex_held(pPage->pBt->mutex) );
65465 assert( sqlite3_mutex_held(pPage->pBt->mutex) );
65485 assert( sqlite3_mutex_held(pBt->db->mutex) );
65542 assert( sqlite3_mutex_held(db->mutex) );
65720 pBt->mutex = sqlite3MutexAlloc(SQLITE_MUTEX_FAST);
65721 if( pBt->mutex==0 ){
65811 assert( sqlite3_mutex_notheld(pBt->mutex) );
65828 sqlite3_mutex_free(pBt->mutex);
65889 assert( sqlite3_mutex_held(p->db->mutex) );
65948 assert( sqlite3_mutex_held(p->db->mutex) );
65968 assert( sqlite3_mutex_held(p->db->mutex) );
65982 assert( sqlite3_mutex_held(p->db->mutex) );
66004 assert( sqlite3_mutex_held(p->db->mutex) );
66082 assert( sqlite3_mutex_held(p->pBt->mutex) );
66247 assert( sqlite3_mutex_held(pBt->mutex) );
66448 assert( sqlite3_mutex_held(pBt->mutex) );
66469 assert( sqlite3_mutex_held(pBt->mutex) );
66722 assert( sqlite3_mutex_held(pPage->pBt->mutex) );
66761 assert( sqlite3_mutex_held(pPage->pBt->mutex) );
66836 assert( sqlite3_mutex_held(pBt->mutex) );
66919 assert( sqlite3_mutex_held(pBt->mutex) );
67084 assert( sqlite3_mutex_held(pBt->mutex) );
67803 assert( sqlite3_mutex_held(pBt->mutex) );
68175 assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) );
68450 assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) );
68472 assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) );
68548 assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) );
68804 assert( sqlite3_mutex_held(pCur->pBtree->db->mutex) );
69048 assert( sqlite3_mutex_held(pBt->mutex) );
69363 assert( sqlite3_mutex_held(pBt->mutex) );
69506 assert( sqlite3_mutex_held(pPage->pBt->mutex) );
69595 assert( sqlite3_mutex_held(pPage->pBt->mutex) );
69779 assert( sqlite3_mutex_held(pPage->pBt->mutex) );
69844 assert( sqlite3_mutex_held(pPage->pBt->mutex) );
70406 assert( sqlite3_mutex_held(pPage->pBt->mutex) );
70677 assert( sqlite3_mutex_held(pBt->mutex) );
71421 assert( sqlite3_mutex_held(pBt->mutex) );
72342 assert( sqlite3_mutex_held(pBt->mutex) );
73361 assert( p==0 || sqlite3_mutex_held(p->db->mutex) );
73395 assert( sqlite3_mutex_held(p->db->mutex) );
73401 assert( sqlite3_mutex_held(p->db->mutex) );
73443 assert( sqlite3_mutex_held(p->db->mutex) );
73491 assert( sqlite3_mutex_held(pCsr->pBtree->db->mutex) );
73782 sqlite3_mutex_enter(pSrcDb->mutex);
73783 sqlite3_mutex_enter(pDestDb->mutex);
73826 sqlite3_mutex_leave(pDestDb->mutex);
73827 sqlite3_mutex_leave(pSrcDb->mutex);
73975 sqlite3_mutex_enter(p->pSrcDb->mutex);
73978 sqlite3_mutex_enter(p->pDestDb->mutex);
74210 sqlite3_mutex_leave(p->pDestDb->mutex);
74213 sqlite3_mutex_leave(p->pSrcDb->mutex);
74228 sqlite3_mutex_enter(pSrcDb->mutex);
74231 sqlite3_mutex_enter(p->pDestDb->mutex);
74315 assert( sqlite3_mutex_held(p->pSrc->pBt->mutex) );
74323 sqlite3_mutex_enter(p->pDestDb->mutex);
74325 sqlite3_mutex_leave(p->pDestDb->mutex);
74351 assert( sqlite3_mutex_held(p->pSrc->pBt->mutex) );
74585 assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) );
74697 assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) );
74725 assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) );
74748 assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) );
74776 assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) );
74824 assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) );
74854 assert( pAccum->db==0 || sqlite3_mutex_held(pAccum->db->mutex) );
74878 assert( p->db==0 || sqlite3_mutex_held(p->db->mutex) );
74976 assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) );
75004 assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) );
75036 assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) );
75061 assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) );
75075 assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) );
75107 assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) );
75416 assert( pFrom->db==0 || sqlite3_mutex_held(pFrom->db->mutex) );
75417 assert( pTo->db==0 || sqlite3_mutex_held(pTo->db->mutex) );
75452 assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) );
75600 assert( pVal->db==0 || sqlite3_mutex_held(pVal->db->mutex) );
75643 assert( pVal->db==0 || sqlite3_mutex_held(pVal->db->mutex) );
79595 assert( sqlite3_mutex_held(db->mutex) );
81074 assert( sqlite3_mutex_held(db->mutex) );
81404 sqlite3_mutex_enter(db->mutex);
81428 sqlite3_mutex_enter(db->mutex);
81434 sqlite3_mutex_leave(db->mutex);
81447 sqlite3_mutex *mutex = ((Vdbe*)pStmt)->db->mutex;
81449 sqlite3_mutex_enter(mutex);
81458 sqlite3_mutex_leave(mutex);
81653 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
81662 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
81671 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
81675 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
81681 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
81687 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
81691 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
81695 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
81705 assert( sqlite3_mutex_held(pOut->db->mutex) );
81712 assert( sqlite3_mutex_held(pOut->db->mutex) );
81722 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
81732 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
81748 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
81757 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
81766 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
81771 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
81775 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
81780 assert( sqlite3_mutex_held(pOut->db->mutex) );
81800 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
81808 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
81993 sqlite3_mutex_enter(db->mutex);
82023 sqlite3_mutex_leave(db->mutex);
82122 assert( sqlite3_mutex_held(p->pOut->db->mutex) );
82144 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
82178 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) );
82296 sqlite3_mutex_enter(pVm->db->mutex);
82334 assert( sqlite3_mutex_held(p->db->mutex) );
82336 sqlite3_mutex_leave(p->db->mutex);
82445 sqlite3_mutex_enter(db->mutex);
82462 sqlite3_mutex_leave(db->mutex);
82569 sqlite3_mutex_enter(p->db->mutex);
82572 sqlite3_mutex_leave(p->db->mutex);
82579 sqlite3_mutex_leave(p->db->mutex);
82632 sqlite3_mutex_leave(p->db->mutex);
82675 sqlite3_mutex_leave(p->db->mutex);
82688 sqlite3_mutex_leave(p->db->mutex);
82697 sqlite3_mutex_leave(p->db->mutex);
82713 sqlite3_mutex_leave(p->db->mutex);
82792 sqlite3_mutex_leave(p->db->mutex);
82799 sqlite3_mutex_enter(p->db->mutex);
82807 sqlite3_mutex_leave(p->db->mutex);
82854 sqlite3_mutex_enter(pTo->db->mutex);
82858 sqlite3_mutex_leave(pTo->db->mutex);
82941 sqlite3_mutex_enter(pDb->mutex);
82947 sqlite3_mutex_leave(pDb->mutex);
82967 sqlite3_mutex_enter(db->mutex);
82973 sqlite3_mutex_leave(db->mutex);
83006 sqlite3_mutex_enter(p->db->mutex);
83008 sqlite3_mutex_leave(p->db->mutex);
83022 sqlite3_mutex_enter(p->db->mutex);
83024 sqlite3_mutex_leave(p->db->mutex);
91360 sqlite3_mutex_enter(db->mutex);
91555 sqlite3_mutex_leave(db->mutex);
91570 sqlite3_mutex_enter(db->mutex);
91573 sqlite3_mutex_leave(db->mutex);
91597 sqlite3_mutex_enter(db->mutex);
91649 sqlite3_mutex_leave(db->mutex);
91695 sqlite3_mutex_enter(db->mutex);
91714 sqlite3_mutex_leave(db->mutex);
106643 sqlite3_mutex_enter(db->mutex);
106647 sqlite3_mutex_leave(db->mutex);
118950 sqlite3_mutex_enter(db->mutex);
119043 sqlite3_mutex_leave(db->mutex);
120313 sqlite3_mutex_enter(db->mutex);
120316 sqlite3_mutex_leave(db->mutex);
120326 assert( sqlite3_mutex_held(db->mutex) );
120338 sqlite3_mutex_enter(db->mutex);
120344 sqlite3_mutex_leave(db->mutex);
120396 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER);
120399 sqlite3_mutex_enter(mutex);
120415 sqlite3_mutex_leave(mutex);
120434 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER);
120439 sqlite3_mutex_enter(mutex);
120448 sqlite3_mutex_leave(mutex);
120461 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER);
120464 sqlite3_mutex_enter(mutex);
120468 sqlite3_mutex_leave(mutex);
120491 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER);
120498 sqlite3_mutex_enter(mutex);
120505 sqlite3_mutex_leave(mutex);
123768 assert( sqlite3_mutex_held(db->mutex) );
123859 assert( sqlite3_mutex_held(db->mutex) );
124079 assert( sqlite3_mutex_held(db->mutex) );
124110 assert( sqlite3_mutex_held(db->mutex) );
124136 assert( sqlite3_mutex_held(db->mutex) );
124191 assert( sqlite3_mutex_held(db->mutex) );
124240 assert( sqlite3_mutex_held(db->mutex) );
124397 sqlite3_mutex_enter(db->mutex);
124410 sqlite3_mutex_leave(db->mutex);
124430 assert( sqlite3_mutex_held(sqlite3VdbeDb(p)->mutex) );
124434 assert( sqlite3_mutex_held(db->mutex) );
124549 sqlite3_mutex_enter(db->mutex);
124566 sqlite3_mutex_leave(db->mutex);
134379 sqlite3_mutex_enter(db->mutex);
134387 sqlite3_mutex_leave(db->mutex);
134521 assert( sqlite3_mutex_held(db->mutex) );
134559 assert( sqlite3_mutex_held(db->mutex) );
135051 sqlite3_mutex_enter(db->mutex);
135055 sqlite3_mutex_leave(db->mutex);
135113 sqlite3_mutex_leave(db->mutex);
135525 sqlite3_mutex_enter(db->mutex);
135545 sqlite3_mutex_leave(db->mutex);
155024 sqlite3GlobalConfig.mutex = *va_arg(ap, sqlite3_mutex_methods*);
155031 *va_arg(ap, sqlite3_mutex_methods*) = sqlite3GlobalConfig.mutex;
155368 return db->mutex;
155381 sqlite3_mutex_enter(db->mutex);
155391 sqlite3_mutex_leave(db->mutex);
155407 sqlite3_mutex_enter(db->mutex);
155421 sqlite3_mutex_leave(db->mutex);
155593 sqlite3_mutex_enter(db->mutex);
155595 sqlite3_mutex_leave(db->mutex);
155694 assert( sqlite3_mutex_held(db->mutex) );
155715 sqlite3_mutex_enter(db->mutex);
155738 sqlite3_mutex_leave(db->mutex);
155786 sqlite3_mutex_leave(db->mutex);
155883 sqlite3_mutex_leave(db->mutex);
155885 sqlite3_mutex_free(db->mutex);
155904 assert( sqlite3_mutex_held(db->mutex) );
156230 sqlite3_mutex_enter(db->mutex);
156236 sqlite3_mutex_leave(db->mutex);
156258 sqlite3_mutex_enter(db->mutex);
156268 sqlite3_mutex_leave(db->mutex);
156329 assert( sqlite3_mutex_held(db->mutex) );
156442 sqlite3_mutex_enter(db->mutex);
156465 sqlite3_mutex_leave(db->mutex);
156532 sqlite3_mutex_enter(db->mutex);
156538 sqlite3_mutex_leave(db->mutex);
156591 sqlite3_mutex_enter(db->mutex);
156593 sqlite3_mutex_leave(db->mutex);
156620 sqlite3_mutex_enter(db->mutex);
156625 sqlite3_mutex_leave(db->mutex);
156643 sqlite3_mutex_enter(db->mutex);
156649 sqlite3_mutex_leave(db->mutex);
156675 sqlite3_mutex_enter(db->mutex);
156681 sqlite3_mutex_leave(db->mutex);
156705 sqlite3_mutex_enter(db->mutex);
156709 sqlite3_mutex_leave(db->mutex);
156730 sqlite3_mutex_enter(db->mutex);
156734 sqlite3_mutex_leave(db->mutex);
156755 sqlite3_mutex_enter(db->mutex);
156759 sqlite3_mutex_leave(db->mutex);
156775 sqlite3_mutex_enter(db->mutex);
156779 sqlite3_mutex_leave(db->mutex);
156851 sqlite3_mutex_enter(db->mutex);
156855 sqlite3_mutex_leave(db->mutex);
156896 sqlite3_mutex_enter(db->mutex);
156916 sqlite3_mutex_leave(db->mutex);
156959 assert( sqlite3_mutex_held(db->mutex) );
157027 sqlite3_mutex_enter(db->mutex);
157038 sqlite3_mutex_leave(db->mutex);
157064 sqlite3_mutex_enter(db->mutex);
157080 sqlite3_mutex_leave(db->mutex);
157135 assert( sqlite3_mutex_held(db->mutex) );
157670 db->mutex = sqlite3MutexAlloc(SQLITE_MUTEX_RECURSIVE);
157671 if( db->mutex==0 ){
157677 sqlite3MutexWarnOnContention(db->mutex);
157680 sqlite3_mutex_enter(db->mutex);
157920 assert( db->mutex!=0 || isThreadsafe==0
157922 sqlite3_mutex_leave(db->mutex);
158036 sqlite3_mutex_enter(db->mutex);
158040 sqlite3_mutex_leave(db->mutex);
158061 sqlite3_mutex_enter(db->mutex);
158069 sqlite3_mutex_leave(db->mutex);
158086 sqlite3_mutex_enter(db->mutex);
158090 sqlite3_mutex_leave(db->mutex);
158107 sqlite3_mutex_enter(db->mutex);
158111 sqlite3_mutex_leave(db->mutex);
158233 sqlite3_mutex_enter(db->mutex);
158314 sqlite3_mutex_leave(db->mutex);
158341 sqlite3_mutex_enter(db->mutex);
158343 sqlite3_mutex_leave(db->mutex);
158357 sqlite3_mutex_enter(db->mutex);
158384 sqlite3_mutex_leave(db->mutex);
158580 sqlite3_mutex_enter(db->mutex);
158582 sqlite3_mutex_leave(db->mutex);
158696 sqlite3_mutex_enter(db->mutex);
158703 sqlite3_mutex_leave(db->mutex);
158834 sqlite3_mutex_enter(db->mutex);
158849 sqlite3_mutex_leave(db->mutex);
158870 sqlite3_mutex_enter(db->mutex);
158904 sqlite3_mutex_leave(db->mutex);
158924 sqlite3_mutex_enter(db->mutex);
158936 sqlite3_mutex_leave(db->mutex);
159157 sqlite3_mutex_enter(db->mutex);
159190 sqlite3_mutex_leave(db->mutex);
189273 sqlite3_mutex *mutex; /* Mutex to protect pMain */
192989 sqlite3_mutex_enter(pRbuVfs->mutex);
193001 sqlite3_mutex_leave(pRbuVfs->mutex);
193009 sqlite3_mutex_enter(p->pRbuVfs->mutex);
193016 sqlite3_mutex_leave(p->pRbuVfs->mutex);
193030 sqlite3_mutex_enter(pRbuVfs->mutex);
193036 sqlite3_mutex_leave(pRbuVfs->mutex);
193775 sqlite3_mutex_free(((rbu_vfs*)pVfs)->mutex);
193844 pNew->mutex = sqlite3_mutex_alloc(SQLITE_MUTEX_RECURSIVE);
193845 if( pNew->mutex==0 ){
193853 sqlite3_mutex_free(pNew->mutex);
196373 assert( sqlite3_mutex_held(db->mutex) );