• Home
  • Raw
  • Download

Lines Matching refs:pLock

38338   struct flock *pLock,  /* The description of the lock */
38342 int rc = osFcntl(h,F_SETLK,pLock);
38350 rc = osFcntl(h,F_SETLK,pLock);
38377 static int unixFileLock(unixFile *pFile, struct flock *pLock){
38398 rc = osSetPosixAdvisoryLock(pFile->h, pLock, pFile);
67854 BtLock *pLock; /* List of locks held on this shared-btree struct */
68614 BtLock *pLock;
68662 for(pLock=pBtree->pBt->pLock; pLock; pLock=pLock->pNext){
68663 if( pLock->pBtree==pBtree
68664 && (pLock->iTable==iTab || (pLock->eLock==WRITE_LOCK && pLock->iTable==1))
68665 && pLock->eLock>=eLockType
68744 for(pIter=pBt->pLock; pIter; pIter=pIter->pNext){
68789 BtLock *pLock = 0;
68808 for(pIter=pBt->pLock; pIter; pIter=pIter->pNext){
68810 pLock = pIter;
68818 if( !pLock ){
68819 pLock = (BtLock *)sqlite3MallocZero(sizeof(BtLock));
68820 if( !pLock ){
68823 pLock->iTable = iTable;
68824 pLock->pBtree = p;
68825 pLock->pNext = pBt->pLock;
68826 pBt->pLock = pLock;
68834 if( eLock>pLock->eLock ){
68835 pLock->eLock = eLock;
68853 BtLock **ppIter = &pBt->pLock;
68860 BtLock *pLock = *ppIter;
68861 assert( (pBt->btsFlags & BTS_EXCLUSIVE)==0 || pBt->pWriter==pLock->pBtree );
68862 assert( pLock->pBtree->inTrans>=pLock->eLock );
68863 if( pLock->pBtree==p ){
68864 *ppIter = pLock->pNext;
68865 assert( pLock->iTable!=1 || pLock==&p->lock );
68866 if( pLock->iTable!=1 ){
68867 sqlite3_free(pLock);
68870 ppIter = &pLock->pNext;
68898 BtLock *pLock;
68901 for(pLock=pBt->pLock; pLock; pLock=pLock->pNext){
68902 assert( pLock->eLock==READ_LOCK || pLock->pBtree==p );
68903 pLock->eLock = READ_LOCK;
71956 for(pIter=pBt->pLock; pIter; pIter=pIter->pNext){
72035 p->lock.pNext = pBt->pLock;
72036 pBt->pLock = &p->lock;