• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/Heimdal-398.1.2/lib/sqlite/

Lines Matching refs:readLock

44788   i16 readLock;              /* Which read lock is being held.  -1 for none */
45650 pRet->readLock = -1;
46373 ** WAL_READ_LOCK(pWal->readLock). The pWal->readLock integer is
46374 ** in the range 0 <= pWal->readLock < WAL_NREADER. If pWal->readLock==(-1)
46377 ** including frame number aReadMark[pWal->readLock]. The reader will
46378 ** use WAL frames up to and including pWal->hdr.mxFrame if pWal->readLock>0
46379 ** Or if pWal->readLock==0, then the reader will ignore the WAL
46382 ** this routine will always set pWal->readLock>0 on success.
46384 ** lock on WAL_READ_LOCK(pWal->readLock) and set pWal->readLock to -1.
46400 assert( pWal->readLock<0 ); /* Not currently locked */
46486 pWal->readLock = 0;
46562 pWal->readLock = (i16)mxI;
46602 if( pWal->readLock>=0 ){
46603 walUnlockShared(pWal, WAL_READ_LOCK(pWal->readLock));
46604 pWal->readLock = -1;
46628 assert( pWal->readLock>=0 || pWal->lockError );
46632 ** in this case as an optimization. Likewise, if pWal->readLock==0,
46636 if( iLast==0 || pWal->readLock==0 ){
46733 if( pWal && ALWAYS(pWal->readLock>=0) ){
46758 assert( pWal->readLock>=0 );
46906 if( pWal->readLock==0 ){
46958 pWal->readLock = -1;
47257 ** on the pWal->readLock byte. If the WAL is already in locking_mode=NORMAL
47264 ** locking_mode=EXCLUSIVE. This means that the pWal->readLock must
47280 /* pWal->readLock is usually set, but might be -1 if there was a
47286 assert( pWal->readLock>=0 || pWal->lockError );
47287 assert( pWal->readLock>=0 || (op<=0 && pWal->exclusiveMode==0) );
47292 if( walLockShared(pWal, WAL_READ_LOCK(pWal->readLock))!=SQLITE_OK ){
47302 assert( pWal->readLock>=0 );
47303 walUnlockShared(pWal, WAL_READ_LOCK(pWal->readLock));