Lines Matching refs:nRef

7385   int nRef;                       /* Number of open cursors */  member
14505 i16 nRef; /* Number of users of this page */ member
15482 int nRef; member
15754 int nRef; /* Number of pointers to this structure */ member
15946 u32 nRef; /* Number of references to this KeyInfo object */ member
16566 int nRef; /* Number of names resolved by this context */ member
24105 volatile int nRef; /* Number of entrances */ member
24136 return (p->nRef!=0 && pthread_equal(p->owner, pthread_self())); in pthreadMutexHeld()
24139 return p->nRef==0 || pthread_equal(p->owner, pthread_self())==0; in pthreadMutexNotheld()
24276 assert( p->nRef==0 ); in pthreadMutexFree()
24318 if( p->nRef>0 && pthread_equal(p->owner, self) ){ in pthreadMutexEnter()
24319 p->nRef++; in pthreadMutexEnter()
24322 assert( p->nRef==0 ); in pthreadMutexEnter()
24324 p->nRef = 1; in pthreadMutexEnter()
24332 assert( p->nRef>0 || p->owner==0 ); in pthreadMutexEnter()
24334 p->nRef++; in pthreadMutexEnter()
24340 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexEnter()
24361 if( p->nRef>0 && pthread_equal(p->owner, self) ){ in pthreadMutexTry()
24362 p->nRef++; in pthreadMutexTry()
24365 assert( p->nRef==0 ); in pthreadMutexTry()
24367 p->nRef = 1; in pthreadMutexTry()
24379 p->nRef++; in pthreadMutexTry()
24389 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexTry()
24404 p->nRef--; in pthreadMutexLeave()
24405 if( p->nRef==0 ) p->owner = 0; in pthreadMutexLeave()
24407 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE ); in pthreadMutexLeave()
24410 if( p->nRef==0 ){ in pthreadMutexLeave()
24419 printf("leave mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexLeave()
24779 volatile int nRef; /* Number of enterances */
24805 return p->nRef!=0 && p->owner==GetCurrentThreadId();
24809 return p->nRef==0 || p->owner!=tid;
25000 assert( p->nRef==0 && p->owner==0 );
25035 assert( p->nRef>0 || p->owner==0 );
25037 p->nRef++;
25040 tid, p->id, p, p->trace, p->nRef));
25073 p->nRef++;
25083 tid, p->id, p, p->trace, p->owner, p->nRef, sqlite3ErrName(rc)));
25101 assert( p->nRef>0 );
25103 p->nRef--;
25104 if( p->nRef==0 ) p->owner = 0;
25105 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE );
25112 tid, p->id, p, p->trace, p->nRef));
31620 int nRef; /* Number of references to this one */
31702 pCandidate->nRef++;
31709 pNew->nRef = 1;
31723 assert( pId->nRef>0 );
31724 pId->nRef--;
31725 if( pId->nRef==0 ){
31863 int nRef; /* Number of pointers to this structure */
32013 pInode->nRef--;
32014 if( pInode->nRef==0 ){
32113 pInode->nRef = 1;
32119 pInode->nRef++;
34873 int nRef; /* Number of unixShm objects pointing to this */
34928 assert( pShmNode->nRef==0 || sqlite3_mutex_held(pShmNode->mutex) );
35012 if( p && ALWAYS(p->nRef==0) ){
35222 pShmNode->nRef++;
35568 assert( pShmNode->nRef>0 );
35569 pShmNode->nRef--;
35570 if( pShmNode->nRef==0 ){
42384 int nRef; /* Number of winShm objects pointing to this */
42444 assert( pFile->nRef==0 || sqlite3_mutex_held(pFile->mutex) );
42491 if( p->nRef==0 ){
42641 pShmNode->nRef++;
42700 assert( pShmNode->nRef>0 );
42701 pShmNode->nRef--;
42702 if( pShmNode->nRef==0 ){
45278 printf("%3d: nRef %2d flgs %02x data ", i, pPg->nRef, pPg->flags);
45615 pPg && (pPg->nRef || (pPg->flags&PGHDR_NEED_SYNC));
45620 for(pPg=pCache->pDirtyTail; pPg && pPg->nRef; pPg=pPg->pDirtyPrev);
45692 pPgHdr->nRef++;
45702 assert( p->nRef>0 );
45704 if( (--p->nRef)==0 ){
45717 assert(p->nRef>0);
45719 p->nRef++;
45729 assert( p->nRef==1 );
45743 assert( p->nRef>0 );
45770 if( p->nRef==0 ){
45814 assert( p->nRef>0 );
45978 return p->nRef;
52043 p->nRef = 1;
52051 assert( p->nRef==1 );
52623 if( pList->nRef==0 ){
55027 assert( pPg->nRef>0 );
55091 assert( !pPgOld || pPgOld->nRef==1 );
55165 assert( pPg->nRef>0 || pPg->pPager->memDb );
59856 int nRef; /* Number of references to this structure */
62769 assert( pBt->nRef>0 );
62784 pBt->nRef++;
62881 pBt->nRef = 1;
62980 pBt->nRef--;
62981 if( pBt->nRef<=0 ){
64223 VVA_ONLY( int nRef = sqlite3PagerRefcount(pPager); )
64265 assert( nRef>=sqlite3PagerRefcount(pPager) );
70017 VVA_ONLY( int nRef );
70021 VVA_ONLY( nRef = sqlite3PagerRefcount(pBt->pPager) );
70022 assert( nRef>=0 );
70111 assert( nRef==sqlite3PagerRefcount(pBt->pPager) );
70398 return p->pBt->nRef;
75070 assert( pVCur->pVtab->nRef>0 );
75071 pVCur->pVtab->nRef--;
86630 pVtab->nRef++;
91661 pTopNC->nRef++;
91940 int nRef = pNC->nRef;
91943 assert( pNC->nRef>=nRef );
91944 if( nRef!=pNC->nRef ){
92392 int nRef = 0; /* Refcount for pOuterNC and outer contexts */
92400 for(pNC=pOuterNC; pNC; pNC=pNC->pNext) nRef += pNC->nRef;
92407 for(pNC=pOuterNC; pNC; pNC=pNC->pNext) nRef -= pNC->nRef;
92408 assert( pItem->fg.isCorrelated==0 && nRef<=0 );
92409 pItem->fg.isCorrelated = (nRef!=0);
119740 p->nRef = 1;
119753 assert( p->nRef>0 );
119754 p->nRef--;
119755 if( p->nRef==0 ) sqlite3DbFreeNN(p->db, p);
119764 assert( p->nRef>0 );
119765 p->nRef++;
119777 SQLITE_PRIVATE int sqlite3KeyInfoIsWriteable(KeyInfo *p){ return p->nRef==1; }
127510 pVTab->nRef++;
127534 assert( pVTab->nRef>0 );
127537 pVTab->nRef--;
127538 if( pVTab->nRef==0 ){
127941 pVTable->nRef = 1;
128208 if( p->pVtab->nRef>0 ){
144379 pDestructor->nRef--;
144380 if( pDestructor->nRef==0 ){
145079 pDestructor->nRef++;
145138 if( pArg && pArg->nRef==0 ){
167386 int nRef; /* Number of references to this node */
167608 p->nRef++;
167674 pNode->nRef = 1;
167714 pNode->nRef++;
167749 pNode->nRef = 1;
167885 assert( pNode->nRef>0 );
167886 pNode->nRef--;
167887 if( pNode->nRef==0 ){
169652 assert( pNode->nRef==1 );
169689 pNode->nRef++;
194626 int nRef; /* Object reference count */
195110 if( pStruct && 0>=(--pStruct->nRef) ){
195112 assert( pStruct->nRef==0 );
195121 pStruct->nRef++;
195165 pRet->nRef = 1;
198948 pNew->nRef = 1;