Lines Matching refs:locked
55660 int locked = 0; /* True if some process holds a RESERVED lock */
55670 rc = sqlite3OsCheckReservedLock(pPager->fd, &locked);
55671 if( rc==SQLITE_OK && !locked ){
62530 u8 locked; /* True if db currently has pBt locked */
62905 assert( p->locked==0 );
62911 p->locked = 1;
62920 assert( p->locked==1 );
62926 p->locked = 0;
62960 assert( !p->locked || p->wantToLock>0 );
62968 assert( (p->locked==0 && p->sharable) || p->pBt->db==p->db );
62972 if( p->locked ) return;
62991 p->locked = 1;
63003 assert( !pLater->locked || pLater->wantToLock>0 );
63004 if( pLater->locked ){
63039 assert( p->sharable==0 || p->locked==0 || p->wantToLock>0 );
63040 assert( p->sharable==0 || p->locked==0 || p->db==p->pBt->db );
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) );
63044 return (p->sharable==0 || p->locked);
63138 return p->sharable==0 || p->locked==1;
65911 assert( p->wantToLock==0 && p->locked==0 );
65930 assert( p->locked==0 );