Lines Matching refs:nRef

8035   int nRef;                       /* Number of open cursors */  member
16034 i16 nRef; /* Number of users of this page */ member
17096 int nRef; member
17442 int nRef; /* Number of pointers to this structure */ member
17653 u32 nRef; /* Number of references to this KeyInfo object */ member
18330 int nRef; /* Number of names resolved by this context */ member
26218 volatile int nRef; /* Number of entrances */ member
26250 return (p->nRef!=0 && pthread_equal(p->owner, pthread_self())); in pthreadMutexHeld()
26253 return p->nRef==0 || pthread_equal(p->owner, pthread_self())==0; in pthreadMutexNotheld()
26396 assert( p->nRef==0 ); in pthreadMutexFree()
26438 if( p->nRef>0 && pthread_equal(p->owner, self) ){ in pthreadMutexEnter()
26439 p->nRef++; in pthreadMutexEnter()
26442 assert( p->nRef==0 ); in pthreadMutexEnter()
26444 p->nRef = 1; in pthreadMutexEnter()
26452 assert( p->nRef>0 || p->owner==0 ); in pthreadMutexEnter()
26454 p->nRef++; in pthreadMutexEnter()
26460 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexEnter()
26481 if( p->nRef>0 && pthread_equal(p->owner, self) ){ in pthreadMutexTry()
26482 p->nRef++; in pthreadMutexTry()
26485 assert( p->nRef==0 ); in pthreadMutexTry()
26487 p->nRef = 1; in pthreadMutexTry()
26499 p->nRef++; in pthreadMutexTry()
26509 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexTry()
26524 p->nRef--; in pthreadMutexLeave()
26525 if( p->nRef==0 ) p->owner = 0; in pthreadMutexLeave()
26527 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE ); in pthreadMutexLeave()
26530 if( p->nRef==0 ){ in pthreadMutexLeave()
26539 printf("leave mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexLeave()
26899 volatile int nRef; /* Number of enterances */
26925 return p->nRef!=0 && p->owner==GetCurrentThreadId();
26929 return p->nRef==0 || p->owner!=tid;
27120 assert( p->nRef==0 && p->owner==0 );
27155 assert( p->nRef>0 || p->owner==0 );
27157 p->nRef++;
27160 tid, p->id, p, p->trace, p->nRef));
27193 p->nRef++;
27203 tid, p->id, p, p->trace, p->owner, p->nRef, sqlite3ErrName(rc)));
27221 assert( p->nRef>0 );
27223 p->nRef--;
27224 if( p->nRef==0 ) p->owner = 0;
27225 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE );
27232 tid, p->id, p, p->trace, p->nRef));
34357 int nRef; /* Number of references to this one */
34439 pCandidate->nRef++;
34446 pNew->nRef = 1;
34460 assert( pId->nRef>0 );
34461 pId->nRef--;
34462 if( pId->nRef==0 ){
34619 int nRef; /* Number of pointers to this structure */
34779 pInode->nRef--;
34780 if( pInode->nRef==0 ){
34887 pInode->nRef = 1;
34894 pInode->nRef++;
37706 int nRef; /* Number of unixShm objects pointing to this */
37761 assert( pShmNode->nRef==0 || sqlite3_mutex_held(pShmNode->pShmMutex) );
37762 assert( pShmNode->nRef>0 || unixMutexHeld() );
37851 if( p && ALWAYS(p->nRef==0) ){
38069 pShmNode->nRef++;
38438 assert( pShmNode->nRef>0 );
38439 pShmNode->nRef--;
38440 if( pShmNode->nRef==0 ){
45320 int nRef; /* Number of winShm objects pointing to this */
45380 assert( pFile->nRef==0 || sqlite3_mutex_held(pFile->mutex) );
45427 if( p->nRef==0 ){
45577 pShmNode->nRef++;
45636 assert( pShmNode->nRef>0 );
45637 pShmNode->nRef--;
45638 if( pShmNode->nRef==0 ){
48863 printf("%3d: nRef %2d flgs %02x data ", i, pPg->nRef, pPg->flags);
49202 pPg && (pPg->nRef || (pPg->flags&PGHDR_NEED_SYNC));
49207 for(pPg=pCache->pDirtyTail; pPg && pPg->nRef; pPg=pPg->pDirtyPrev);
49279 pPgHdr->nRef++;
49289 assert( p->nRef>0 );
49291 if( (--p->nRef)==0 ){
49304 assert(p->nRef>0);
49306 p->nRef++;
49316 assert( p->nRef==1 );
49330 assert( p->nRef>0 );
49357 if( p->nRef==0 ){
49401 assert( p->nRef>0 );
49565 return p->nRef;
55612 p->nRef = 1;
55620 assert( p->nRef==1 );
56210 if( pList->nRef==0 ){
58659 assert( pPg->nRef>0 );
58723 assert( !pPgOld || pPgOld->nRef==1 || CORRUPT_DB );
58725 if( pPgOld->nRef>1 ){
58801 assert( pPg->nRef>0 || pPg->pPager->memDb );
63754 int nRef; /* Number of references to this structure */
66753 assert( pBt->nRef>0 );
66768 pBt->nRef++;
66865 pBt->nRef = 1;
66964 pBt->nRef--;
66965 if( pBt->nRef<=0 ){
68245 VVA_ONLY( int nRef = sqlite3PagerRefcount(pPager); )
68287 assert( nRef>=sqlite3PagerRefcount(pPager) );
74457 VVA_ONLY( int nRef );
74461 VVA_ONLY( nRef = sqlite3PagerRefcount(pBt->pPager) );
74462 assert( nRef>=0 );
74570 assert( nRef==sqlite3PagerRefcount(pBt->pPager) );
74857 return p->pBt->nRef;
80027 assert( pVCur->pVtab->nRef>0 );
80028 pVCur->pVtab->nRef--;
92393 pVtab->nRef++;
98159 pTopNC->nRef++;
98572 int nRef = pNC->nRef;
98580 assert( pNC->nRef>=nRef );
98581 if( nRef!=pNC->nRef ){
99106 int nRef = 0; /* Refcount for pOuterNC and outer contexts */
99114 for(pNC=pOuterNC; pNC; pNC=pNC->pNext) nRef += pNC->nRef;
99121 for(pNC=pOuterNC; pNC; pNC=pNC->pNext) nRef -= pNC->nRef;
99122 assert( pItem->fg.isCorrelated==0 && nRef<=0 );
99123 pItem->fg.isCorrelated = (nRef!=0);
130142 p->nRef = 1;
130155 assert( p->nRef>0 );
130156 p->nRef--;
130157 if( p->nRef==0 ) sqlite3DbFreeNN(p->db, p);
130166 assert( p->nRef>0 );
130167 p->nRef++;
130179 SQLITE_PRIVATE int sqlite3KeyInfoIsWriteable(KeyInfo *p){ return p->nRef==1; }
138972 pVTab->nRef++;
138996 assert( pVTab->nRef>0 );
138999 pVTab->nRef--;
139000 if( pVTab->nRef==0 ){
139411 pVTable->nRef = 1;
139679 if( p->pVtab->nRef>0 ){
161303 pDestructor->nRef--;
161304 if( pDestructor->nRef==0 ){
162036 pDestructor->nRef++;
162087 pArg->nRef = 0;
162094 if( pArg && pArg->nRef==0 ){
187529 int nRef; /* Number of references to this node */
187751 assert( p->nRef>0 );
187752 p->nRef++;
187818 pNode->nRef = 1;
187871 pParent->nRef++;
187877 pNode->nRef++;
187915 pNode->nRef = 1;
188059 assert( pNode->nRef>0 );
188061 pNode->nRef--;
188062 if( pNode->nRef==0 ){
189763 pLeft->nRef++;
189905 assert( pNode->nRef==1 );
189942 pNode->nRef++;
215786 int nRef; /* Object reference count */
216262 if( pStruct && 0>=(--pStruct->nRef) ){
216264 assert( pStruct->nRef==0 );
216273 pStruct->nRef++;
216322 pRet->nRef = 1;
220146 pNew->nRef = 1;