Lines Matching defs:mutex

484 ** Helper functions to obtain and relinquish the global mutex. The
485 ** global mutex is used to protect the unixInodeInfo and
489 ** Function unixMutexHeld() is used to assert() that the global mutex
1067 ** The mutex entered using the unixEnterMutex() function must be held
1099 ** The mutex entered using the unixEnterMutex() function must be held
1371 /* This mutex is needed because pFile->pInode is shared across threads
1737 ** It is *not* necessary to hold the mutex when this routine is called,
1738 ** even on VxWorks. A mutex will be acquired on VxWorks by the
2598 /* This mutex is needed because pFile->pInode is shared across threads
3562 ** Either unixShmNode.mutex must be held or unixShmNode.nRef==0 and
3568 sqlite3_mutex *mutex; /* Mutex to access this object */
3593 ** All other fields are read/write. The unixShm.pFile->mutex must be held
3599 u8 hasMutex; /* True if holding the unixShmNode mutex */
3629 assert( sqlite3_mutex_held(pShmNode->mutex) || pShmNode->nRef==0 );
3700 if( p->mutex ) sqlite3_mutex_free(p->mutex);
3808 pShmNode->mutex = sqlite3_mutex_alloc(SQLITE_MUTEX_FAST);
3809 if( pShmNode->mutex==0 ){
3848 ** the cover of the unixEnterMutex() mutex and the pointer from the
3851 ** at pShmNode->pFirst. This must be done while holding the pShmNode->mutex
3852 ** mutex.
3854 sqlite3_mutex_enter(pShmNode->mutex);
3857 sqlite3_mutex_leave(pShmNode->mutex);
3907 sqlite3_mutex_enter(pShmNode->mutex);
3984 sqlite3_mutex_leave(pShmNode->mutex);
4023 sqlite3_mutex_enter(pShmNode->mutex);
4096 sqlite3_mutex_leave(pShmNode->mutex);
4142 sqlite3_mutex_enter(pShmNode->mutex);
4149 sqlite3_mutex_leave(pShmNode->mutex);
4550 ** immediately, before releasing the mutex. findInodeInfo() may fail
6667 ** single thread. The memory allocation and mutex subsystems have not