Lines Matching refs:nRef
7533 int nRef; /* Number of open cursors */ member
15695 i16 nRef; /* Number of users of this page */ member
16778 int nRef; member
17168 int nRef; /* Number of pointers to this structure */ member
17406 u32 nRef; /* Number of references to this KeyInfo object */ member
18113 int nRef; /* Number of names resolved by this context */ member
27237 volatile int nRef; /* Number of entrances */
27269 return (p->nRef!=0 && pthread_equal(p->owner, pthread_self()));
27272 return p->nRef==0 || pthread_equal(p->owner, pthread_self())==0;
27415 assert( p->nRef==0 );
27457 if( p->nRef>0 && pthread_equal(p->owner, self) ){
27458 p->nRef++;
27461 assert( p->nRef==0 );
27463 p->nRef = 1;
27471 assert( p->nRef>0 || p->owner==0 );
27473 p->nRef++;
27479 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
27500 if( p->nRef>0 && pthread_equal(p->owner, self) ){
27501 p->nRef++;
27504 assert( p->nRef==0 );
27506 p->nRef = 1;
27518 p->nRef++;
27528 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
27543 p->nRef--;
27544 if( p->nRef==0 ) p->owner = 0;
27546 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE );
27549 if( p->nRef==0 ){
27558 printf("leave mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
27720 volatile int nRef; /* Number of enterances */
27746 return p->nRef!=0 && p->owner==GetCurrentThreadId();
27750 return p->nRef==0 || p->owner!=tid;
27941 assert( p->nRef==0 && p->owner==0 );
27976 assert( p->nRef>0 || p->owner==0 );
27978 p->nRef++;
27981 tid, p->id, p, p->trace, p->nRef));
28014 p->nRef++;
28024 tid, p->id, p, p->trace, p->owner, p->nRef, sqlite3ErrName(rc)));
28042 assert( p->nRef>0 );
28044 p->nRef--;
28045 if( p->nRef==0 ) p->owner = 0;
28046 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE );
28053 tid, p->id, p, p->trace, p->nRef));
35143 int nRef; /* Number of references to this one */
35225 pCandidate->nRef++;
35232 pNew->nRef = 1;
35246 assert( pId->nRef>0 );
35247 pId->nRef--;
35248 if( pId->nRef==0 ){
35405 int nRef; /* Number of pointers to this structure */
35565 pInode->nRef--;
35566 if( pInode->nRef==0 ){
35673 pInode->nRef = 1;
35680 pInode->nRef++;
38525 int nRef; /* Number of unixShm objects pointing to this */
38615 assert( pShmNode->nRef==0 || sqlite3_mutex_held(pShmNode->pShmMutex) );
38616 assert( pShmNode->nRef>0 || unixMutexHeld() );
38705 if( p && ALWAYS(p->nRef==0) ){
38923 pShmNode->nRef++;
39325 assert( pShmNode->nRef>0 );
39326 pShmNode->nRef--;
39327 if( pShmNode->nRef==0 ){
46103 int nRef; /* Number of winShm objects pointing to this */
46163 assert( pFile->nRef==0 || sqlite3_mutex_held(pFile->mutex) );
46210 if( p->nRef==0 ){
46360 pShmNode->nRef++;
46419 assert( pShmNode->nRef>0 );
46420 pShmNode->nRef--;
46421 if( pShmNode->nRef==0 ){
48605 int nRef; /* Number of users of this MemStore */
48745 if( p->nRef==1 ){
48759 p->nRef--;
48760 if( p->nRef<=0 ){
49078 p->nRef = 1;
49082 p->nRef++;
49904 printf("%3d: nRef %2d flgs %02x data ", i, pPg->nRef, pPg->flags);
50246 pPg && (pPg->nRef || (pPg->flags&PGHDR_NEED_SYNC));
50251 for(pPg=pCache->pDirtyTail; pPg && pPg->nRef; pPg=pPg->pDirtyPrev);
50323 pPgHdr->nRef++;
50333 assert( p->nRef>0 );
50335 if( (--p->nRef)==0 ){
50348 assert(p->nRef>0);
50350 p->nRef++;
50360 assert( p->nRef==1 );
50374 assert( p->nRef>0 );
50401 if( p->nRef==0 ){
50445 assert( p->nRef>0 );
50609 return p->nRef;
56675 p->nRef = 1;
56683 assert( p->nRef==1 );
57273 if( pList->nRef==0 ){
59726 assert( pPg->nRef>0 );
59790 assert( !pPgOld || pPgOld->nRef==1 || CORRUPT_DB );
59792 if( NEVER(pPgOld->nRef>1) ){
59868 assert( pPg->nRef>0 || pPg->pPager->memDb );
65000 int nRef; /* Number of references to this structure */
68029 assert( pBt->nRef>0 );
68044 pBt->nRef++;
68141 pBt->nRef = 1;
68240 pBt->nRef--;
68241 if( pBt->nRef<=0 ){
69522 VVA_ONLY( int nRef );
69527 VVA_ONLY( nRef = sqlite3PagerRefcount(pPager); )
69594 assert( nRef>=sqlite3PagerRefcount(pPager) );
76039 VVA_ONLY( int nRef );
76051 VVA_ONLY( nRef = sqlite3PagerRefcount(pBt->pPager) );
76052 assert( nRef>=0 );
76166 assert( nRef==sqlite3PagerRefcount(pBt->pPager) );
76448 return p->pBt->nRef;
81665 assert( pVCur->pVtab->nRef>0 );
81666 pVCur->pVtab->nRef--;
94405 pVtab->nRef++;
100254 pTopNC->nRef++;
100418 anRef[i] = p->nRef;
100433 p->nRef = anRef[i];
100722 int nRef = pNC->nRef;
100732 assert( pNC->nRef>=nRef );
100733 if( nRef!=pNC->nRef ){
101258 int nRef = pOuterNC ? pOuterNC->nRef : 0;
101273 assert( pItem->fg.isCorrelated==0 && pOuterNC->nRef>=nRef );
101274 pItem->fg.isCorrelated = (pOuterNC->nRef>nRef);
134660 p->nRef = 1;
134673 assert( p->nRef>0 );
134674 p->nRef--;
134675 if( p->nRef==0 ) sqlite3DbFreeNN(p->db, p);
134684 assert( p->nRef>0 );
134685 p->nRef++;
134697 SQLITE_PRIVATE int sqlite3KeyInfoIsWriteable(KeyInfo *p){ return p->nRef==1; }
144657 pVTab->nRef++;
144681 assert( pVTab->nRef>0 );
144685 pVTab->nRef--;
144686 if( pVTab->nRef==0 ){
145105 pVTable->nRef = 1;
145386 if( p->pVtab->nRef>0 ){
167733 pDestructor->nRef--;
167734 if( pDestructor->nRef==0 ){
168513 pDestructor->nRef++;
168564 pArg->nRef = 0;
168571 if( pArg && pArg->nRef==0 ){
194307 int nRef; /* Number of references to this node */
194551 assert( p->nRef>0 );
194552 p->nRef++;
194618 pNode->nRef = 1;
194658 pNode->nRef++;
194696 pNode->nRef = 1;
194840 assert( pNode->nRef>0 );
194842 pNode->nRef--;
194843 if( pNode->nRef==0 ){
196570 pLeft->nRef++;
196713 assert( pNode->nRef==1 );
196751 pNode->nRef++;
223254 int nRef; /* Object reference count */
223734 if( pStruct && 0>=(--pStruct->nRef) ){
223736 assert( pStruct->nRef==0 );
223745 pStruct->nRef++;
223772 if( *pRc==SQLITE_OK && p->nRef>1 ){
223793 p->nRef--;
223794 pNew->nRef = 1;
223846 pRet->nRef = 1;
227690 pNew->nRef = 1;