Lines Matching defs:nRef

7713   int nRef;                       /* Number of open cursors */
16522 i16 nRef; /* Number of users of this page */
17327 ** a single object of this type is allocated. FuncDestructor.nRef is set to
17338 int nRef;
17734 int nRef; /* Number of pointers to this structure */
17972 u32 nRef; /* Number of references to this KeyInfo object */
18714 ** or all contexts are check. When a match is found, the nRef member of
18732 int nRef; /* Number of names resolved by this context */
28178 ** The sqlite3_mutex.id, sqlite3_mutex.nRef, and sqlite3_mutex.owner fields
28197 volatile int nRef; /* Number of entrances */
28229 return (p->nRef!=0 && pthread_equal(p->owner, pthread_self()));
28232 return p->nRef==0 || pthread_equal(p->owner, pthread_self())==0;
28375 assert( p->nRef==0 );
28417 if( p->nRef>0 && pthread_equal(p->owner, self) ){
28418 p->nRef++;
28421 assert( p->nRef==0 );
28423 p->nRef = 1;
28431 assert( p->nRef>0 || p->owner==0 );
28433 p->nRef++;
28439 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
28460 if( p->nRef>0 && pthread_equal(p->owner, self) ){
28461 p->nRef++;
28464 assert( p->nRef==0 );
28466 p->nRef = 1;
28478 p->nRef++;
28488 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
28503 p->nRef--;
28504 if( p->nRef==0 ) p->owner = 0;
28506 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE );
28509 if( p->nRef==0 ){
28518 printf("leave mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
28680 volatile int nRef; /* Number of enterances */
28706 return p->nRef!=0 && p->owner==GetCurrentThreadId();
28710 return p->nRef==0 || p->owner!=tid;
28901 assert( p->nRef==0 && p->owner==0 );
28936 assert( p->nRef>0 || p->owner==0 );
28938 p->nRef++;
28940 OSTRACE(("ENTER-MUTEX tid=%lu, mutex(%d)=%p (%d), nRef=%d\n",
28941 tid, p->id, p, p->trace, p->nRef));
28974 p->nRef++;
28983 OSTRACE(("TRY-MUTEX tid=%lu, mutex(%d)=%p (%d), owner=%lu, nRef=%d, rc=%s\n",
28984 tid, p->id, p, p->trace, p->owner, p->nRef, sqlite3ErrName(rc)));
29002 assert( p->nRef>0 );
29004 p->nRef--;
29005 if( p->nRef==0 ) p->owner = 0;
29006 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE );
29012 OSTRACE(("LEAVE-MUTEX tid=%lu, mutex(%d)=%p (%d), nRef=%d\n",
29013 tid, p->id, p, p->trace, p->nRef));
37725 int nRef; /* Number of references to this one */
37778 ** The nRef field of the vxworksFileId object is incremented before
37807 pCandidate->nRef++;
37814 pNew->nRef = 1;
37828 assert( pId->nRef>0 );
37829 pId->nRef--;
37830 if( pId->nRef==0 ){
37968 ** (2) When nRef>0, then the following fields are unchanging and can
37987 int nRef; /* Number of pointers to this structure */
38147 pInode->nRef--;
38148 if( pInode->nRef==0 ){
38264 pInode->nRef = 1;
38271 pInode->nRef++;
41158 ** nRef
41165 ** Either unixShmNode.pShmMutex must be held or unixShmNode.nRef==0 and
41179 int nRef; /* Number of unixShm objects pointing to this */
41269 assert( pShmNode->nRef==0 || sqlite3_mutex_held(pShmNode->pShmMutex) );
41270 assert( pShmNode->nRef>0 || unixMutexHeld() );
41351 ** Purge the unixShmNodeList list of all entries with unixShmNode.nRef==0.
41359 if( p && ALWAYS(p->nRef==0) ){
41577 pShmNode->nRef++;
41991 /* If pShmNode->nRef has reached 0, then close the underlying
41995 assert( pShmNode->nRef>0 );
41996 pShmNode->nRef--;
41997 if( pShmNode->nRef==0 ){
48786 ** nRef
48794 ** Either winShmNode.mutex must be held or winShmNode.nRef==0 and
48815 int nRef; /* Number of winShm objects pointing to this */
48875 assert( pFile->nRef==0 || sqlite3_mutex_held(pFile->mutex) );
48909 ** Purge the winShmNodeList list of all entries with winShmNode.nRef==0.
48922 if( p->nRef==0 ){
49072 pShmNode->nRef++;
49128 /* If pShmNode->nRef has reached 0, then close the underlying
49131 assert( pShmNode->nRef>0 );
49132 pShmNode->nRef--;
49133 if( pShmNode->nRef==0 ){
51334 ** or when the .nRef is less than zero and the object is not part of
51351 int nRef; /* Number of users of this MemStore */
51492 if( p->nRef==1 ){
51506 p->nRef--;
51507 if( p->nRef<=0 ){
51867 p->nRef = 1;
51871 p->nRef++;
52683 printf("%3d: nRef %2d flgs %02x data ", i, pPg->nRef, pPg->flags);
53060 pPg && (pPg->nRef || (pPg->flags&PGHDR_NEED_SYNC));
53065 for(pPg=pCache->pDirtyTail; pPg && pPg->nRef; pPg=pPg->pDirtyPrev);
53137 pPgHdr->nRef++;
53147 assert( p->nRef>0 );
53149 if( (--p->nRef)==0 ){
53163 assert(p->nRef>0);
53165 p->nRef++;
53175 assert( p->nRef==1 );
53189 assert( p->nRef>0 );
53217 if( p->nRef==0 ){
53262 assert( p->nRef>0 );
53269 assert( pXPage->nRef==0 );
53270 pXPage->nRef++;
53435 return p->nRef;
59591 p->nRef = 1;
59599 assert( p->nRef==1 );
60201 if( pList->nRef==0 ){
60559 /* pPager->nRef = 0; */
62702 assert( pPg->nRef>0 );
62766 assert( !pPgOld || pPgOld->nRef==1 || CORRUPT_DB );
62768 if( NEVER(pPgOld->nRef>1) ){
62844 assert( pPg->nRef>0 || pPg->pPager->memDb );
67963 ** to this one BtShared object. BtShared.nRef is the number of
67967 ** mutex, except for nRef and pNext which are accessed under the
67969 ** may not be modified once it is initially set as long as nRef>0.
67971 ** thereafter is unchanged as long as nRef>0.
68019 int nRef; /* Number of references to this structure */
71166 assert( pBt->nRef>0 );
71181 pBt->nRef++;
71278 pBt->nRef = 1;
71363 ** Decrement the BtShared.nRef counter. When it reaches zero,
71365 ** true if the BtShared.nRef counter reaches zero and return
71377 pBt->nRef--;
71378 if( pBt->nRef<=0 ){
72679 VVA_ONLY( int nRef );
72684 VVA_ONLY( nRef = sqlite3PagerRefcount(pPager); )
72751 assert( nRef>=sqlite3PagerRefcount(pPager) );
79321 VVA_ONLY( int nRef );
79333 VVA_ONLY( nRef = sqlite3PagerRefcount(pBt->pPager) );
79334 assert( nRef>=0 );
79448 assert( nRef==sqlite3PagerRefcount(pBt->pPager) );
79741 return p->pBt->nRef;
85157 assert( pVCur->pVtab->nRef>0 );
85158 pVCur->pVtab->nRef--;
98379 pVtab->nRef++;
104300 ** Because no reference was made to outer contexts, the pNC->nRef
104420 /* Increment the nRef value on all name contexts from TopNC up to
104424 pTopNC->nRef++;
104590 anRef[i] = p->nRef;
104605 p->nRef = anRef[i];
104892 int nRef = pNC->nRef;
104902 assert( pNC->nRef>=nRef );
104903 if( nRef!=pNC->nRef ){
105432 int nRef = pOuterNC ? pOuterNC->nRef : 0;
105448 assert( pItem->fg.isCorrelated==0 && pOuterNC->nRef>=nRef );
105449 pItem->fg.isCorrelated = (pOuterNC->nRef>nRef);
139733 p->nRef = 1;
139747 assert( p->nRef>0 );
139748 p->nRef--;
139749 if( p->nRef==0 ) sqlite3DbNNFreeNN(p->db, p);
139758 assert( p->nRef>0 );
139759 p->nRef++;
139771 SQLITE_PRIVATE int sqlite3KeyInfoIsWriteable(KeyInfo *p){ return p->nRef==1; }
150119 pVTab->nRef++;
150143 assert( pVTab->nRef>0 );
150147 pVTab->nRef--;
150148 if( pVTab->nRef==0 ){
150568 pVTable->nRef = 1;
150850 if( p->pVtab->nRef>0 ){
174575 pDestructor->nRef--;
174576 if( pDestructor->nRef==0 ){
175355 pDestructor->nRef++;
175406 pArg->nRef = 0;
175413 if( pArg && pArg->nRef==0 ){
179955 int nRef; /* Number of pointers to this object */
183658 pHash->nRef--;
183659 if( pHash->nRef<=0 ){
183725 pHash->nRef = 0;
183762 pHash->nRef++;
183767 pHash->nRef++;
183773 pHash->nRef++;
201113 u32 nNodeRef; /* Number RtreeNodes with positive nRef */
201308 int nRef; /* Number of references to this node */
201552 assert( p->nRef>0 );
201553 p->nRef++;
201619 pNode->nRef = 1;
201659 pNode->nRef++;
201697 pNode->nRef = 1;
201841 assert( pNode->nRef>0 );
201843 pNode->nRef--;
201844 if( pNode->nRef==0 ){
203571 pLeft->nRef++;
203714 assert( pNode->nRef==1 );
203752 pNode->nRef++;
230339 int nRef; /* Object reference count */
230819 if( pStruct && 0>=(--pStruct->nRef) ){
230821 assert( pStruct->nRef==0 );
230830 pStruct->nRef++;
230857 if( *pRc==SQLITE_OK && p->nRef>1 ){
230878 p->nRef--;
230879 pNew->nRef = 1;
230931 pRet->nRef = 1;
234777 pNew->nRef = 1;