Lines Matching refs:pLock

28071 static int unixFileLock(unixFile *pFile, struct flock *pLock){
28094 rc = osFcntl(pFile->h, F_SETLK, pLock);
53949 BtLock *pLock; /* List of locks held on this shared-btree struct */
54651 BtLock *pLock;
54697 for(pLock=pBtree->pBt->pLock; pLock; pLock=pLock->pNext){
54698 if( pLock->pBtree==pBtree
54699 && (pLock->iTable==iTab || (pLock->eLock==WRITE_LOCK && pLock->iTable==1))
54700 && pLock->eLock>=eLockType
54779 for(pIter=pBt->pLock; pIter; pIter=pIter->pNext){
54824 BtLock *pLock = 0;
54843 for(pIter=pBt->pLock; pIter; pIter=pIter->pNext){
54845 pLock = pIter;
54853 if( !pLock ){
54854 pLock = (BtLock *)sqlite3MallocZero(sizeof(BtLock));
54855 if( !pLock ){
54858 pLock->iTable = iTable;
54859 pLock->pBtree = p;
54860 pLock->pNext = pBt->pLock;
54861 pBt->pLock = pLock;
54869 if( eLock>pLock->eLock ){
54870 pLock->eLock = eLock;
54888 BtLock **ppIter = &pBt->pLock;
54895 BtLock *pLock = *ppIter;
54896 assert( (pBt->btsFlags & BTS_EXCLUSIVE)==0 || pBt->pWriter==pLock->pBtree );
54897 assert( pLock->pBtree->inTrans>=pLock->eLock );
54898 if( pLock->pBtree==p ){
54899 *ppIter = pLock->pNext;
54900 assert( pLock->iTable!=1 || pLock==&p->lock );
54901 if( pLock->iTable!=1 ){
54902 sqlite3_free(pLock);
54905 ppIter = &pLock->pNext;
54933 BtLock *pLock;
54936 for(pLock=pBt->pLock; pLock; pLock=pLock->pNext){
54937 assert( pLock->eLock==READ_LOCK || pLock->pBtree==p );
54938 pLock->eLock = READ_LOCK;
57633 for(pIter=pBt->pLock; pIter; pIter=pIter->pNext){
57689 p->lock.pNext = pBt->pLock;
57690 pBt->pLock = &p->lock;