Lines Matching refs:nRef
7925 int nRef; /* Number of open cursors */ member
17098 i64 nRef; /* Number of users of this page */ member
17912 int nRef; member
18319 int nRef; /* Number of pointers to this structure */ member
18558 u32 nRef; /* Number of references to this KeyInfo object */ member
19340 int nRef; /* Number of names resolved by this context */ member
29092 volatile int nRef; /* Number of entrances */ member
29124 return (p->nRef!=0 && pthread_equal(p->owner, pthread_self())); in pthreadMutexHeld()
29127 return p->nRef==0 || pthread_equal(p->owner, pthread_self())==0; in pthreadMutexNotheld()
29270 assert( p->nRef==0 ); in pthreadMutexFree()
29312 if( p->nRef>0 && pthread_equal(p->owner, self) ){ in pthreadMutexEnter()
29313 p->nRef++; in pthreadMutexEnter()
29316 assert( p->nRef==0 ); in pthreadMutexEnter()
29318 p->nRef = 1; in pthreadMutexEnter()
29326 assert( p->nRef>0 || p->owner==0 ); in pthreadMutexEnter()
29328 p->nRef++; in pthreadMutexEnter()
29334 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexEnter()
29355 if( p->nRef>0 && pthread_equal(p->owner, self) ){ in pthreadMutexTry()
29356 p->nRef++; in pthreadMutexTry()
29359 assert( p->nRef==0 ); in pthreadMutexTry()
29361 p->nRef = 1; in pthreadMutexTry()
29373 p->nRef++; in pthreadMutexTry()
29383 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexTry()
29398 p->nRef--; in pthreadMutexLeave()
29399 if( p->nRef==0 ) p->owner = 0; in pthreadMutexLeave()
29401 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE ); in pthreadMutexLeave()
29404 if( p->nRef==0 ){ in pthreadMutexLeave()
29413 printf("leave mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexLeave()
29575 volatile int nRef; /* Number of entrances */ member
29601 return p->nRef!=0 && p->owner==GetCurrentThreadId(); in winMutexHeld()
29605 return p->nRef==0 || p->owner!=tid; in winMutexNotheld2()
29796 assert( p->nRef==0 && p->owner==0 ); in winMutexFree()
29831 assert( p->nRef>0 || p->owner==0 ); in winMutexEnter()
29833 p->nRef++; in winMutexEnter()
29836 tid, p->id, p, p->trace, p->nRef)); in winMutexEnter()
29869 p->nRef++; in winMutexTry()
29879 tid, p->id, p, p->trace, p->owner, p->nRef, sqlite3ErrName(rc))); in winMutexTry()
29897 assert( p->nRef>0 ); in winMutexLeave()
29899 p->nRef--; in winMutexLeave()
29900 if( p->nRef==0 ) p->owner = 0; in winMutexLeave()
29901 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE ); in winMutexLeave()
29908 tid, p->id, p, p->trace, p->nRef)); in winMutexLeave()
38972 int nRef; /* Number of references to this one */
39054 pCandidate->nRef++;
39061 pNew->nRef = 1;
39075 assert( pId->nRef>0 );
39076 pId->nRef--;
39077 if( pId->nRef==0 ){
39234 int nRef; /* Number of pointers to this structure */
39394 pInode->nRef--;
39395 if( pInode->nRef==0 ){
39502 pInode->nRef = 1;
39509 pInode->nRef++;
42364 int nRef; /* Number of unixShm objects pointing to this */
42457 assert( pShmNode->nRef>=0 );
42462 assert( pShmNode->nRef>0 || unixMutexHeld() );
42463 assert( pShmNode->nRef==0 || sqlite3_mutex_held(pShmNode->pShmMutex) );
42472 assert( pShmNode->nRef>0 );
42553 if( p && ALWAYS(p->nRef==0) ){
42801 pShmNode->nRef++;
43275 assert( pShmNode->nRef>0 );
43276 pShmNode->nRef--;
43277 if( pShmNode->nRef==0 ){
50042 int nRef; /* Number of winShm objects pointing to this */
50102 assert( pFile->nRef==0 || sqlite3_mutex_held(pFile->mutex) );
50149 if( p->nRef==0 ){
50299 pShmNode->nRef++;
50358 assert( pShmNode->nRef>0 );
50359 pShmNode->nRef--;
50360 if( pShmNode->nRef==0 ){
52594 int nRef; /* Number of users of this MemStore */
52735 if( p->nRef==1 ){
52749 p->nRef--;
52750 if( p->nRef<=0 ){
53110 p->nRef = 1;
53114 p->nRef++;
53936 printf("%3d: nRef %2lld flgs %02x data ", i, pPg->nRef, pPg->flags);
54323 pPg && (pPg->nRef || (pPg->flags&PGHDR_NEED_SYNC));
54328 for(pPg=pCache->pDirtyTail; pPg && pPg->nRef; pPg=pPg->pDirtyPrev);
54400 pPgHdr->nRef++;
54410 assert( p->nRef>0 );
54412 if( (--p->nRef)==0 ){
54426 assert(p->nRef>0);
54428 p->nRef++;
54438 assert( p->nRef==1 );
54452 assert( p->nRef>0 );
54480 if( p->nRef==0 ){
54525 assert( p->nRef>0 );
54532 assert( pXPage->nRef==0 );
54533 pXPage->nRef++;
54698 return p->nRef;
60817 p->nRef = 1;
60825 assert( p->nRef==1 );
61415 if( pList->nRef==0 ){
63885 assert( pPg->nRef>0 );
63949 assert( !pPgOld || pPgOld->nRef==1 || CORRUPT_DB );
63951 if( NEVER(pPgOld->nRef>1) ){
64027 assert( pPg->nRef>0 || pPg->pPager->memDb );
69606 int nRef; /* Number of references to this structure */
72753 assert( pBt->nRef>0 );
72768 pBt->nRef++;
72868 pBt->nRef = 1;
72967 pBt->nRef--;
72968 if( pBt->nRef<=0 ){
74296 VVA_ONLY( int nRef );
74301 VVA_ONLY( nRef = sqlite3PagerRefcount(pPager); )
74368 assert( nRef>=sqlite3PagerRefcount(pPager) );
81151 VVA_ONLY( int nRef );
81163 VVA_ONLY( nRef = sqlite3PagerRefcount(pBt->pPager) );
81164 assert( nRef>=0 );
81274 assert( nRef==sqlite3PagerRefcount(pBt->pPager) );
81567 return p->pBt->nRef;
87118 assert( pVCur->pVtab->nRef>0 );
87119 pVCur->pVtab->nRef--;
100763 pVtab->nRef++;
106992 pTopNC->nRef++;
107158 anRef[i] = p->nRef;
107169 p->nRef = anRef[i];
107467 int nRef = pNC->nRef;
107477 assert( pNC->nRef>=nRef );
107478 if( nRef!=pNC->nRef ){
108006 int nRef = pOuterNC ? pOuterNC->nRef : 0;
108022 assert( pItem->fg.isCorrelated==0 && pOuterNC->nRef>=nRef );
108023 pItem->fg.isCorrelated = (pOuterNC->nRef>nRef);
143301 p->nRef = 1;
143315 assert( p->nRef>0 );
143316 p->nRef--;
143317 if( p->nRef==0 ) sqlite3DbNNFreeNN(p->db, p);
143326 assert( p->nRef>0 );
143327 p->nRef++;
143339 SQLITE_PRIVATE int sqlite3KeyInfoIsWriteable(KeyInfo *p){ return p->nRef==1; }
154339 pVTab->nRef++;
154363 assert( pVTab->nRef>0 );
154367 pVTab->nRef--;
154368 if( pVTab->nRef==0 ){
154789 pVTable->nRef = 1;
155071 if( p->pVtab->nRef>0 ){
179343 pDestructor->nRef--;
179344 if( pDestructor->nRef==0 ){
180149 pDestructor->nRef++;
180200 pArg->nRef = 0;
180207 if( pArg && pArg->nRef==0 ){
184848 int nRef; /* Number of pointers to this object */
188606 pHash->nRef--;
188607 if( pHash->nRef<=0 ){
188673 pHash->nRef = 0;
188710 pHash->nRef++;
188715 pHash->nRef++;
188721 pHash->nRef++;
208884 int nRef; /* Number of references to this node */
209134 assert( p->nRef>0 );
209135 p->nRef++;
209201 pNode->nRef = 1;
209241 pNode->nRef++;
209277 pNode->nRef = 1;
209421 assert( pNode->nRef>0 );
209423 pNode->nRef--;
209424 if( pNode->nRef==0 ){
211103 pLeft->nRef++;
211246 assert( pNode->nRef==1 );
211284 pNode->nRef++;
239011 int nRef; /* Object reference count */
239148 int nRef; /* Number of pointers to this object */
239573 if( pStruct && 0>=(--pStruct->nRef) ){
239575 assert( pStruct->nRef==0 );
239584 pStruct->nRef++;
239611 if( *pRc==SQLITE_OK && p->nRef>1 ){
239632 p->nRef--;
239633 pNew->nRef = 1;
239693 pRet->nRef = 1;
240534 pNew->nRef = 1;
241467 p->nRef--;
241468 if( p->nRef<=0 ){
244356 pNew->nRef = 1;
245526 pNewIter->pTombArray->nRef++;