Lines Matching refs:nRef
8167 int nRef; /* Number of open cursors */ member
17581 i64 nRef; /* Number of users of this page */ member
18369 int nRef; member
18777 int nRef; /* Number of pointers to this structure */ member
19029 u32 nRef; /* Number of references to this KeyInfo object */ member
19863 int nRef; /* Number of names resolved by this context */ member
29883 volatile int nRef; /* Number of entrances */ member
29915 return (p->nRef!=0 && pthread_equal(p->owner, pthread_self())); in pthreadMutexHeld()
29918 return p->nRef==0 || pthread_equal(p->owner, pthread_self())==0; in pthreadMutexNotheld()
30061 assert( p->nRef==0 ); in pthreadMutexFree()
30103 if( p->nRef>0 && pthread_equal(p->owner, self) ){ in pthreadMutexEnter()
30104 p->nRef++; in pthreadMutexEnter()
30107 assert( p->nRef==0 ); in pthreadMutexEnter()
30109 p->nRef = 1; in pthreadMutexEnter()
30117 assert( p->nRef>0 || p->owner==0 ); in pthreadMutexEnter()
30119 p->nRef++; in pthreadMutexEnter()
30125 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexEnter()
30146 if( p->nRef>0 && pthread_equal(p->owner, self) ){ in pthreadMutexTry()
30147 p->nRef++; in pthreadMutexTry()
30150 assert( p->nRef==0 ); in pthreadMutexTry()
30152 p->nRef = 1; in pthreadMutexTry()
30164 p->nRef++; in pthreadMutexTry()
30174 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexTry()
30189 p->nRef--; in pthreadMutexLeave()
30190 if( p->nRef==0 ) p->owner = 0; in pthreadMutexLeave()
30192 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE ); in pthreadMutexLeave()
30195 if( p->nRef==0 ){ in pthreadMutexLeave()
30204 printf("leave mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexLeave()
30368 volatile int nRef; /* Number of entrances */ member
30394 return p->nRef!=0 && p->owner==GetCurrentThreadId(); in winMutexHeld()
30398 return p->nRef==0 || p->owner!=tid; in winMutexNotheld2()
30589 assert( p->nRef==0 && p->owner==0 ); in winMutexFree()
30624 assert( p->nRef>0 || p->owner==0 ); in winMutexEnter()
30626 p->nRef++; in winMutexEnter()
30629 tid, p->id, p, p->trace, p->nRef)); in winMutexEnter()
30662 p->nRef++; in winMutexTry()
30672 tid, p->id, p, p->trace, p->owner, p->nRef, sqlite3ErrName(rc))); in winMutexTry()
30690 assert( p->nRef>0 ); in winMutexLeave()
30692 p->nRef--; in winMutexLeave()
30693 if( p->nRef==0 ) p->owner = 0; in winMutexLeave()
30694 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE ); in winMutexLeave()
30701 tid, p->id, p, p->trace, p->nRef)); in winMutexLeave()
39798 int nRef; /* Number of references to this one */ member
39880 pCandidate->nRef++; in vxworksFindFileId()
39887 pNew->nRef = 1; in vxworksFindFileId()
39901 assert( pId->nRef>0 ); in vxworksReleaseFileId()
39902 pId->nRef--; in vxworksReleaseFileId()
39903 if( pId->nRef==0 ){ in vxworksReleaseFileId()
40060 int nRef; /* Number of pointers to this structure */ member
40224 pInode->nRef--; in releaseInodeInfo()
40225 if( pInode->nRef==0 ){ in releaseInodeInfo()
40332 pInode->nRef = 1; in findInodeInfo()
40339 pInode->nRef++; in findInodeInfo()
43188 int nRef; /* Number of unixShm objects pointing to this */ member
43281 assert( pShmNode->nRef>=0 ); in unixShmSystemLock()
43286 assert( pShmNode->nRef>0 || unixMutexHeld() ); in unixShmSystemLock()
43287 assert( pShmNode->nRef==0 || sqlite3_mutex_held(pShmNode->pShmMutex) ); in unixShmSystemLock()
43296 assert( pShmNode->nRef>0 ); in unixShmSystemLock()
43377 if( p && ALWAYS(p->nRef==0) ){ in unixShmPurge()
43625 pShmNode->nRef++; in unixOpenSharedMemory()
44098 assert( pShmNode->nRef>0 ); in unixShmUnmap()
44099 pShmNode->nRef--; in unixShmUnmap()
44100 if( pShmNode->nRef==0 ){ in unixShmUnmap()
51194 int nRef; /* Number of winShm objects pointing to this */ member
51248 if( p->nRef==0 ){
51587 pShmNode->nRef++;
51627 assert( pShmNode->nRef>0 );
51628 pShmNode->nRef--;
51629 if( pShmNode->nRef==0 ){
53894 int nRef; /* Number of users of this MemStore */ member
54035 if( p->nRef==1 ){
54049 p->nRef--;
54050 if( p->nRef<=0 ){
54410 p->nRef = 1;
54414 p->nRef++;
55246 printf("%3d: nRef %2lld flgs %02x data ", i, pPg->nRef, pPg->flags);
55633 pPg && (pPg->nRef || (pPg->flags&PGHDR_NEED_SYNC));
55638 for(pPg=pCache->pDirtyTail; pPg && pPg->nRef; pPg=pPg->pDirtyPrev);
55711 pPgHdr->nRef++;
55721 assert( p->nRef>0 );
55723 if( (--p->nRef)==0 ){
55737 assert(p->nRef>0);
55739 p->nRef++;
55749 assert( p->nRef==1 );
55763 assert( p->nRef>0 );
55791 if( p->nRef==0 ){
55836 assert( p->nRef>0 );
55843 assert( pXPage->nRef==0 );
55844 pXPage->nRef++;
56009 return p->nRef;
62136 p->nRef = 1;
62144 assert( p->nRef==1 );
62734 if( pList->nRef==0 ){
65205 assert( pPg->nRef>0 );
65269 assert( !pPgOld || pPgOld->nRef==1 || CORRUPT_DB );
65271 if( NEVER(pPgOld->nRef>1) ){
65347 assert( pPg->nRef>0 || pPg->pPager->memDb );
70969 int nRef; /* Number of references to this structure */ member
74177 assert( pBt->nRef>0 );
74192 pBt->nRef++;
74292 pBt->nRef = 1;
74391 pBt->nRef--;
74392 if( pBt->nRef<=0 ){
75727 VVA_ONLY( int nRef );
75732 VVA_ONLY( nRef = sqlite3PagerRefcount(pPager); )
75799 assert( nRef>=sqlite3PagerRefcount(pPager) );
82639 VVA_ONLY( int nRef );
82653 VVA_ONLY( nRef = sqlite3PagerRefcount(pBt->pPager) );
82654 assert( nRef>=0 );
82767 assert( nRef==sqlite3PagerRefcount(pBt->pPager) );
83061 return p->pBt->nRef;
88675 assert( pVCur->pVtab->nRef>0 );
88676 pVCur->pVtab->nRef--;
102580 pVtab->nRef++;
108880 pTopNC->nRef++;
109059 anRef[i] = p->nRef;
109088 p->nRef = anRef[i];
109401 int nRef = pNC->nRef;
109412 assert( pNC->nRef>=nRef );
109413 if( nRef!=pNC->nRef ){
109950 int nRef = pOuterNC ? pOuterNC->nRef : 0;
109966 assert( pItem->fg.isCorrelated==0 && pOuterNC->nRef>=nRef );
109967 pItem->fg.isCorrelated = (pOuterNC->nRef>nRef);
146395 p->nRef = 1;
146409 assert( p->nRef>0 );
146410 p->nRef--;
146411 if( p->nRef==0 ) sqlite3DbNNFreeNN(p->db, p);
146420 assert( p->nRef>0 );
146421 p->nRef++;
146433 SQLITE_PRIVATE int sqlite3KeyInfoIsWriteable(KeyInfo *p){ return p->nRef==1; }
157736 pVTab->nRef++;
157760 assert( pVTab->nRef>0 );
157764 pVTab->nRef--;
157765 if( pVTab->nRef==0 ){
158189 pVTable->nRef = 1;
158492 if( p->pVtab->nRef>0 ){
183830 pDestructor->nRef--;
183831 if( pDestructor->nRef==0 ){
184673 pDestructor->nRef++;
184724 pArg->nRef = 0;
184731 if( pArg && pArg->nRef==0 ){
189389 int nRef; /* Number of pointers to this object */
193154 pHash->nRef--;
193155 if( pHash->nRef<=0 ){
193221 pHash->nRef = 0;
193258 pHash->nRef++;
193263 pHash->nRef++;
193269 pHash->nRef++;
213832 int nRef; /* Number of references to this node */
214086 assert( p->nRef>0 );
214087 p->nRef++;
214153 pNode->nRef = 1;
214191 pNode->nRef++;
214226 pNode->nRef = 1;
214371 assert( pNode->nRef>0 );
214373 pNode->nRef--;
214374 if( pNode->nRef==0 ){
216064 pLeft->nRef++;
216207 assert( pNode->nRef==1 );
216245 pNode->nRef++;
244674 int nRef; /* Object reference count */
244815 int nRef; /* Number of pointers to this object */
245259 if( pStruct && 0>=(--pStruct->nRef) ){
245261 assert( pStruct->nRef==0 );
245270 pStruct->nRef++;
245297 if( *pRc==SQLITE_OK && p->nRef>1 ){
245318 p->nRef--;
245319 pNew->nRef = 1;
245376 pRet->nRef = 1;
246214 pNew->nRef = 1;
247147 p->nRef--;
247148 if( p->nRef<=0 ){
250073 pNew->nRef = 1;
251513 pNewIter->pTombArray->nRef++;