Lines Matching refs:nRef

7651   int nRef;                       /* Number of open cursors */  member
15579 i16 nRef; /* Number of users of this page */ member
16583 int nRef; member
16872 int nRef; /* Number of pointers to this structure */ member
17064 u32 nRef; /* Number of references to this KeyInfo object */ member
17685 int nRef; /* Number of names resolved by this context */ member
25469 volatile int nRef; /* Number of entrances */ member
25501 return (p->nRef!=0 && pthread_equal(p->owner, pthread_self())); in pthreadMutexHeld()
25504 return p->nRef==0 || pthread_equal(p->owner, pthread_self())==0; in pthreadMutexNotheld()
25647 assert( p->nRef==0 ); in pthreadMutexFree()
25689 if( p->nRef>0 && pthread_equal(p->owner, self) ){ in pthreadMutexEnter()
25690 p->nRef++; in pthreadMutexEnter()
25693 assert( p->nRef==0 ); in pthreadMutexEnter()
25695 p->nRef = 1; in pthreadMutexEnter()
25703 assert( p->nRef>0 || p->owner==0 ); in pthreadMutexEnter()
25705 p->nRef++; in pthreadMutexEnter()
25711 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexEnter()
25732 if( p->nRef>0 && pthread_equal(p->owner, self) ){ in pthreadMutexTry()
25733 p->nRef++; in pthreadMutexTry()
25736 assert( p->nRef==0 ); in pthreadMutexTry()
25738 p->nRef = 1; in pthreadMutexTry()
25750 p->nRef++; in pthreadMutexTry()
25760 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexTry()
25775 p->nRef--; in pthreadMutexLeave()
25776 if( p->nRef==0 ) p->owner = 0; in pthreadMutexLeave()
25778 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE ); in pthreadMutexLeave()
25781 if( p->nRef==0 ){ in pthreadMutexLeave()
25790 printf("leave mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexLeave()
26150 volatile int nRef; /* Number of enterances */
26176 return p->nRef!=0 && p->owner==GetCurrentThreadId();
26180 return p->nRef==0 || p->owner!=tid;
26371 assert( p->nRef==0 && p->owner==0 );
26406 assert( p->nRef>0 || p->owner==0 );
26408 p->nRef++;
26411 tid, p->id, p, p->trace, p->nRef));
26444 p->nRef++;
26454 tid, p->id, p, p->trace, p->owner, p->nRef, sqlite3ErrName(rc)));
26472 assert( p->nRef>0 );
26474 p->nRef--;
26475 if( p->nRef==0 ) p->owner = 0;
26476 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE );
26483 tid, p->id, p, p->trace, p->nRef));
33399 int nRef; /* Number of references to this one */
33481 pCandidate->nRef++;
33488 pNew->nRef = 1;
33502 assert( pId->nRef>0 );
33503 pId->nRef--;
33504 if( pId->nRef==0 ){
33661 int nRef; /* Number of pointers to this structure */
33821 pInode->nRef--;
33822 if( pInode->nRef==0 ){
33929 pInode->nRef = 1;
33936 pInode->nRef++;
36745 int nRef; /* Number of unixShm objects pointing to this */
36800 assert( pShmNode->nRef==0 || sqlite3_mutex_held(pShmNode->pShmMutex) );
36801 assert( pShmNode->nRef>0 || unixMutexHeld() );
36883 if( p && ALWAYS(p->nRef==0) ){
37099 pShmNode->nRef++;
37449 assert( pShmNode->nRef>0 );
37450 pShmNode->nRef--;
37451 if( pShmNode->nRef==0 ){
44317 int nRef; /* Number of winShm objects pointing to this */
44377 assert( pFile->nRef==0 || sqlite3_mutex_held(pFile->mutex) );
44424 if( p->nRef==0 ){
44574 pShmNode->nRef++;
44633 assert( pShmNode->nRef>0 );
44634 pShmNode->nRef--;
44635 if( pShmNode->nRef==0 ){
47843 printf("%3d: nRef %2d flgs %02x data ", i, pPg->nRef, pPg->flags);
48180 pPg && (pPg->nRef || (pPg->flags&PGHDR_NEED_SYNC));
48185 for(pPg=pCache->pDirtyTail; pPg && pPg->nRef; pPg=pPg->pDirtyPrev);
48257 pPgHdr->nRef++;
48267 assert( p->nRef>0 );
48269 if( (--p->nRef)==0 ){
48282 assert(p->nRef>0);
48284 p->nRef++;
48294 assert( p->nRef==1 );
48308 assert( p->nRef>0 );
48335 if( p->nRef==0 ){
48379 assert( p->nRef>0 );
48543 return p->nRef;
54662 p->nRef = 1;
54670 assert( p->nRef==1 );
55272 if( pList->nRef==0 ){
57694 assert( pPg->nRef>0 );
57758 assert( !pPgOld || pPgOld->nRef==1 || CORRUPT_DB );
57760 if( pPgOld->nRef>1 ){
57836 assert( pPg->nRef>0 || pPg->pPager->memDb );
62618 int nRef; /* Number of references to this structure */
65603 assert( pBt->nRef>0 );
65618 pBt->nRef++;
65715 pBt->nRef = 1;
65814 pBt->nRef--;
65815 if( pBt->nRef<=0 ){
67082 VVA_ONLY( int nRef = sqlite3PagerRefcount(pPager); )
67124 assert( nRef>=sqlite3PagerRefcount(pPager) );
73214 VVA_ONLY( int nRef );
73218 VVA_ONLY( nRef = sqlite3PagerRefcount(pBt->pPager) );
73219 assert( nRef>=0 );
73326 assert( nRef==sqlite3PagerRefcount(pBt->pPager) );
73613 return p->pBt->nRef;
78613 assert( pVCur->pVtab->nRef>0 );
78614 pVCur->pVtab->nRef--;
90495 pVtab->nRef++;
95673 pTopNC->nRef++;
96025 int nRef = pNC->nRef;
96028 assert( pNC->nRef>=nRef );
96029 if( nRef!=pNC->nRef ){
96550 int nRef = 0; /* Refcount for pOuterNC and outer contexts */
96558 for(pNC=pOuterNC; pNC; pNC=pNC->pNext) nRef += pNC->nRef;
96565 for(pNC=pOuterNC; pNC; pNC=pNC->pNext) nRef -= pNC->nRef;
96566 assert( pItem->fg.isCorrelated==0 && nRef<=0 );
96567 pItem->fg.isCorrelated = (nRef!=0);
125903 p->nRef = 1;
125916 assert( p->nRef>0 );
125917 p->nRef--;
125918 if( p->nRef==0 ) sqlite3DbFreeNN(p->db, p);
125927 assert( p->nRef>0 );
125928 p->nRef++;
125940 SQLITE_PRIVATE int sqlite3KeyInfoIsWriteable(KeyInfo *p){ return p->nRef==1; }
134432 pVTab->nRef++;
134456 assert( pVTab->nRef>0 );
134459 pVTab->nRef--;
134460 if( pVTab->nRef==0 ){
134866 pVTable->nRef = 1;
135134 if( p->pVtab->nRef>0 ){
155649 pDestructor->nRef--;
155650 if( pDestructor->nRef==0 ){
156400 pDestructor->nRef++;
156450 pArg->nRef = 0;
156457 if( pArg && pArg->nRef==0 ){
181482 int nRef; /* Number of references to this node */
181704 assert( p->nRef>0 );
181705 p->nRef++;
181771 pNode->nRef = 1;
181825 pParent->nRef++;
181828 pNode->nRef++;
181866 pNode->nRef = 1;
182010 assert( pNode->nRef>0 );
182012 pNode->nRef--;
182013 if( pNode->nRef==0 ){
183678 pLeft->nRef++;
183820 assert( pNode->nRef==1 );
183857 pNode->nRef++;
209220 int nRef; /* Object reference count */
209695 if( pStruct && 0>=(--pStruct->nRef) ){
209697 assert( pStruct->nRef==0 );
209706 pStruct->nRef++;
209755 pRet->nRef = 1;
213579 pNew->nRef = 1;