Lines Matching refs:nRef

7950   int nRef;                       /* Number of open cursors */  member
17148 i64 nRef; /* Number of users of this page */ member
17966 int nRef; member
18373 int nRef; /* Number of pointers to this structure */ member
18620 u32 nRef; /* Number of references to this KeyInfo object */ member
19406 int nRef; /* Number of names resolved by this context */ member
29371 volatile int nRef; /* Number of entrances */ member
29403 return (p->nRef!=0 && pthread_equal(p->owner, pthread_self())); in pthreadMutexHeld()
29406 return p->nRef==0 || pthread_equal(p->owner, pthread_self())==0; in pthreadMutexNotheld()
29549 assert( p->nRef==0 ); in pthreadMutexFree()
29591 if( p->nRef>0 && pthread_equal(p->owner, self) ){ in pthreadMutexEnter()
29592 p->nRef++; in pthreadMutexEnter()
29595 assert( p->nRef==0 ); in pthreadMutexEnter()
29597 p->nRef = 1; in pthreadMutexEnter()
29605 assert( p->nRef>0 || p->owner==0 ); in pthreadMutexEnter()
29607 p->nRef++; in pthreadMutexEnter()
29613 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexEnter()
29634 if( p->nRef>0 && pthread_equal(p->owner, self) ){ in pthreadMutexTry()
29635 p->nRef++; in pthreadMutexTry()
29638 assert( p->nRef==0 ); in pthreadMutexTry()
29640 p->nRef = 1; in pthreadMutexTry()
29652 p->nRef++; in pthreadMutexTry()
29662 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexTry()
29677 p->nRef--; in pthreadMutexLeave()
29678 if( p->nRef==0 ) p->owner = 0; in pthreadMutexLeave()
29680 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE ); in pthreadMutexLeave()
29683 if( p->nRef==0 ){ in pthreadMutexLeave()
29692 printf("leave mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexLeave()
29854 volatile int nRef; /* Number of entrances */ member
29880 return p->nRef!=0 && p->owner==GetCurrentThreadId(); in winMutexHeld()
29884 return p->nRef==0 || p->owner!=tid; in winMutexNotheld2()
30075 assert( p->nRef==0 && p->owner==0 ); in winMutexFree()
30110 assert( p->nRef>0 || p->owner==0 ); in winMutexEnter()
30112 p->nRef++; in winMutexEnter()
30115 tid, p->id, p, p->trace, p->nRef)); in winMutexEnter()
30148 p->nRef++; in winMutexTry()
30158 tid, p->id, p, p->trace, p->owner, p->nRef, sqlite3ErrName(rc))); in winMutexTry()
30176 assert( p->nRef>0 ); in winMutexLeave()
30178 p->nRef--; in winMutexLeave()
30179 if( p->nRef==0 ) p->owner = 0; in winMutexLeave()
30180 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE ); in winMutexLeave()
30187 tid, p->id, p, p->trace, p->nRef)); in winMutexLeave()
39312 int nRef; /* Number of references to this one */
39394 pCandidate->nRef++;
39401 pNew->nRef = 1;
39415 assert( pId->nRef>0 );
39416 pId->nRef--;
39417 if( pId->nRef==0 ){
39574 int nRef; /* Number of pointers to this structure */
39738 pInode->nRef--;
39739 if( pInode->nRef==0 ){
39846 pInode->nRef = 1;
39853 pInode->nRef++;
42708 int nRef; /* Number of unixShm objects pointing to this */
42801 assert( pShmNode->nRef>=0 );
42806 assert( pShmNode->nRef>0 || unixMutexHeld() );
42807 assert( pShmNode->nRef==0 || sqlite3_mutex_held(pShmNode->pShmMutex) );
42816 assert( pShmNode->nRef>0 );
42897 if( p && ALWAYS(p->nRef==0) ){
43145 pShmNode->nRef++;
43619 assert( pShmNode->nRef>0 );
43620 pShmNode->nRef--;
43621 if( pShmNode->nRef==0 ){
50393 int nRef; /* Number of winShm objects pointing to this */
50453 assert( pFile->nRef==0 || sqlite3_mutex_held(pFile->mutex) );
50500 if( p->nRef==0 ){
50650 pShmNode->nRef++;
50709 assert( pShmNode->nRef>0 );
50710 pShmNode->nRef--;
50711 if( pShmNode->nRef==0 ){
52945 int nRef; /* Number of users of this MemStore */
53086 if( p->nRef==1 ){
53100 p->nRef--;
53101 if( p->nRef<=0 ){
53461 p->nRef = 1;
53465 p->nRef++;
54295 printf("%3d: nRef %2lld flgs %02x data ", i, pPg->nRef, pPg->flags);
54682 pPg && (pPg->nRef || (pPg->flags&PGHDR_NEED_SYNC));
54687 for(pPg=pCache->pDirtyTail; pPg && pPg->nRef; pPg=pPg->pDirtyPrev);
54759 pPgHdr->nRef++;
54769 assert( p->nRef>0 );
54771 if( (--p->nRef)==0 ){
54785 assert(p->nRef>0);
54787 p->nRef++;
54797 assert( p->nRef==1 );
54811 assert( p->nRef>0 );
54839 if( p->nRef==0 ){
54884 assert( p->nRef>0 );
54891 assert( pXPage->nRef==0 );
54892 pXPage->nRef++;
55057 return p->nRef;
61176 p->nRef = 1;
61184 assert( p->nRef==1 );
61774 if( pList->nRef==0 ){
64244 assert( pPg->nRef>0 );
64308 assert( !pPgOld || pPgOld->nRef==1 || CORRUPT_DB );
64310 if( NEVER(pPgOld->nRef>1) ){
64386 assert( pPg->nRef>0 || pPg->pPager->memDb );
69965 int nRef; /* Number of references to this structure */
73161 assert( pBt->nRef>0 );
73176 pBt->nRef++;
73276 pBt->nRef = 1;
73375 pBt->nRef--;
73376 if( pBt->nRef<=0 ){
74704 VVA_ONLY( int nRef );
74709 VVA_ONLY( nRef = sqlite3PagerRefcount(pPager); )
74776 assert( nRef>=sqlite3PagerRefcount(pPager) );
81586 VVA_ONLY( int nRef );
81600 VVA_ONLY( nRef = sqlite3PagerRefcount(pBt->pPager) );
81601 assert( nRef>=0 );
81714 assert( nRef==sqlite3PagerRefcount(pBt->pPager) );
82007 return p->pBt->nRef;
87594 assert( pVCur->pVtab->nRef>0 );
87595 pVCur->pVtab->nRef--;
101303 pVtab->nRef++;
107578 pTopNC->nRef++;
107757 anRef[i] = p->nRef;
107786 p->nRef = anRef[i];
108079 int nRef = pNC->nRef;
108090 assert( pNC->nRef>=nRef );
108091 if( nRef!=pNC->nRef ){
108621 int nRef = pOuterNC ? pOuterNC->nRef : 0;
108637 assert( pItem->fg.isCorrelated==0 && pOuterNC->nRef>=nRef );
108638 pItem->fg.isCorrelated = (pOuterNC->nRef>nRef);
144408 p->nRef = 1;
144422 assert( p->nRef>0 );
144423 p->nRef--;
144424 if( p->nRef==0 ) sqlite3DbNNFreeNN(p->db, p);
144433 assert( p->nRef>0 );
144434 p->nRef++;
144446 SQLITE_PRIVATE int sqlite3KeyInfoIsWriteable(KeyInfo *p){ return p->nRef==1; }
155575 pVTab->nRef++;
155599 assert( pVTab->nRef>0 );
155603 pVTab->nRef--;
155604 if( pVTab->nRef==0 ){
156027 pVTable->nRef = 1;
156327 if( p->pVtab->nRef>0 ){
180959 pDestructor->nRef--;
180960 if( pDestructor->nRef==0 ){
181765 pDestructor->nRef++;
181816 pArg->nRef = 0;
181823 if( pArg && pArg->nRef==0 ){
186464 int nRef; /* Number of pointers to this object */
190224 pHash->nRef--;
190225 if( pHash->nRef<=0 ){
190291 pHash->nRef = 0;
190328 pHash->nRef++;
190333 pHash->nRef++;
190339 pHash->nRef++;
210680 int nRef; /* Number of references to this node */
210930 assert( p->nRef>0 );
210931 p->nRef++;
210997 pNode->nRef = 1;
211035 pNode->nRef++;
211070 pNode->nRef = 1;
211215 assert( pNode->nRef>0 );
211217 pNode->nRef--;
211218 if( pNode->nRef==0 ){
212908 pLeft->nRef++;
213051 assert( pNode->nRef==1 );
213089 pNode->nRef++;
240944 int nRef; /* Object reference count */
241081 int nRef; /* Number of pointers to this object */
241506 if( pStruct && 0>=(--pStruct->nRef) ){
241508 assert( pStruct->nRef==0 );
241517 pStruct->nRef++;
241544 if( *pRc==SQLITE_OK && p->nRef>1 ){
241565 p->nRef--;
241566 pNew->nRef = 1;
241626 pRet->nRef = 1;
242467 pNew->nRef = 1;
243400 p->nRef--;
243401 if( p->nRef<=0 ){
246289 pNew->nRef = 1;
247462 pNewIter->pTombArray->nRef++;