• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/Heimdal-323.92.1/lib/sqlite/

Lines Matching refs:locktype

22517   int locktype;             /* Type of lock currently held on this file */
22555 pFile->locktype = NO_LOCK;
22579 OSTRACE(( "READ %d lock=%d\n", pFile->h, pFile->locktype ));
22612 OSTRACE(( "WRITE %d lock=%d\n", pFile->h, pFile->locktype ));
22665 OSTRACE(( "SYNC %d lock=%d\n", pFile->h, pFile->locktype ));
22738 ** Lock the file with the lock specified by parameter locktype - one
22763 static int os2Lock( sqlite3_file *id, int locktype ){
22766 int newLocktype; /* Set pFile->locktype to this value before exiting */
22774 OSTRACE(( "LOCK %d %d was %d\n", pFile->h, locktype, pFile->locktype ));
22780 if( pFile->locktype>=locktype ){
22781 OSTRACE(( "LOCK %d %d ok (already held)\n", pFile->h, locktype ));
22787 assert( pFile->locktype!=NO_LOCK || locktype==SHARED_LOCK );
22788 assert( locktype!=PENDING_LOCK );
22789 assert( locktype!=RESERVED_LOCK || pFile->locktype==SHARED_LOCK );
22795 newLocktype = pFile->locktype;
22796 if( pFile->locktype==NO_LOCK
22797 || (locktype==EXCLUSIVE_LOCK && pFile->locktype==RESERVED_LOCK)
22814 if( locktype==SHARED_LOCK && res == NO_ERROR ){
22815 assert( pFile->locktype==NO_LOCK );
22825 if( locktype==RESERVED_LOCK && res == NO_ERROR ){
22826 assert( pFile->locktype==SHARED_LOCK );
22840 if( locktype==EXCLUSIVE_LOCK && res == NO_ERROR ){
22849 if( locktype==EXCLUSIVE_LOCK && res == NO_ERROR ){
22850 assert( pFile->locktype>=SHARED_LOCK );
22870 if( gotPendingLock && locktype==SHARED_LOCK ){
22887 locktype, newLocktype ));
22890 pFile->locktype = newLocktype;
22891 OSTRACE(( "LOCK %d now %d\n", pFile->h, pFile->locktype ));
22904 if( pFile->locktype>=RESERVED_LOCK ){
22936 ** Lower the locking level on file descriptor id to locktype. locktype
22946 static int os2Unlock( sqlite3_file *id, int locktype ){
22956 assert( locktype<=SHARED_LOCK );
22957 OSTRACE(( "UNLOCK %d to %d was %d\n", pFile->h, locktype, pFile->locktype ));
22958 type = pFile->locktype;
22966 if( locktype==SHARED_LOCK && getReadLock(pFile) != NO_ERROR ){
22969 OSTRACE(( "UNLOCK %d to %d getReadLock() failed\n", pFile->h, locktype ));
22981 if( locktype==NO_LOCK && type>=SHARED_LOCK ){
22984 pFile->h, type, locktype, res ));
22994 pFile->locktype = locktype;
22995 OSTRACE(( "UNLOCK %d now %d\n", pFile->h, pFile->locktype ));
23005 *(int*)pArg = ((os2File*)id)->locktype;
23007 ((os2File*)id)->h, ((os2File*)id)->locktype ));
31665 u8 locktype; /* Type of lock currently held on this file */
32688 OSTRACE(("READ %d lock=%d\n", pFile->h, pFile->locktype));
32727 OSTRACE(("WRITE %d lock=%d\n", pFile->h, pFile->locktype));
32831 OSTRACE(("SYNC %d lock=%d\n", pFile->h, pFile->locktype));
32946 ** Lock the file with the lock specified by parameter locktype - one
32971 static int winLock(sqlite3_file *id, int locktype){
32974 int newLocktype; /* Set pFile->locktype to this value before exiting */
32981 pFile->h, locktype, pFile->locktype, pFile->sharedLockByte));
32987 if( pFile->locktype>=locktype ){
32993 assert( pFile->locktype!=NO_LOCK || locktype==SHARED_LOCK );
32994 assert( locktype!=PENDING_LOCK );
32995 assert( locktype!=RESERVED_LOCK || pFile->locktype==SHARED_LOCK );
33001 newLocktype = pFile->locktype;
33002 if( (pFile->locktype==NO_LOCK)
33003 || ( (locktype==EXCLUSIVE_LOCK)
33004 && (pFile->locktype==RESERVED_LOCK))
33022 if( locktype==SHARED_LOCK && res ){
33023 assert( pFile->locktype==NO_LOCK );
33034 if( locktype==RESERVED_LOCK && res ){
33035 assert( pFile->locktype==SHARED_LOCK );
33046 if( locktype==EXCLUSIVE_LOCK && res ){
33053 if( locktype==EXCLUSIVE_LOCK && res ){
33054 assert( pFile->locktype>=SHARED_LOCK );
33070 if( gotPendingLock && locktype==SHARED_LOCK ){
33081 locktype, newLocktype));
33085 pFile->locktype = (u8)newLocktype;
33101 if( pFile->locktype>=RESERVED_LOCK ){
33117 ** Lower the locking level on file descriptor id to locktype. locktype
33127 static int winUnlock(sqlite3_file *id, int locktype){
33132 assert( locktype<=SHARED_LOCK );
33133 OSTRACE(("UNLOCK %d to %d was %d(%d)\n", pFile->h, locktype,
33134 pFile->locktype, pFile->sharedLockByte));
33135 type = pFile->locktype;
33138 if( locktype==SHARED_LOCK && !getReadLock(pFile) ){
33147 if( locktype==NO_LOCK && type>=SHARED_LOCK ){
33153 pFile->locktype = (u8)locktype;
33164 *(int*)pArg = pFile->locktype;
41156 ** Try to obtain a lock of type locktype on the database file. If
41167 ** variable to locktype before returning.
41169 static int pager_wait_on_lock(Pager *pPager, int locktype){
41177 assert( (pPager->eLock>=locktype)
41178 || (pPager->eLock==NO_LOCK && locktype==SHARED_LOCK)
41179 || (pPager->eLock==RESERVED_LOCK && locktype==EXCLUSIVE_LOCK)
41183 rc = pagerLockDb(pPager, locktype);