Lines Matching refs:nRef

5923   int nRef;                       /* NO LONGER USED */
9421 i16 nRef; /* Number of users of this page */
10242 ** a single object of this type is allocated. FuncDestructor.nRef is set to
10253 int nRef;
10470 int nRef; /* Number of pointers to this structure */
10520 u16 nRef; /* Number of pointers to this Table */
11253 ** or all contexts are check. When a match is found, the nRef member of
11267 int nRef; /* Number of names resolved by this context */
18096 ** The sqlite3_mutex.id, sqlite3_mutex.nRef, and sqlite3_mutex.owner fields
18113 volatile int nRef; /* Number of entrances */
18142 return (p->nRef!=0 && pthread_equal(p->owner, pthread_self()));
18145 return p->nRef==0 || pthread_equal(p->owner, pthread_self())==0;
18259 assert( p->nRef==0 );
18292 if( p->nRef>0 && pthread_equal(p->owner, self) ){
18293 p->nRef++;
18296 assert( p->nRef==0 );
18298 p->nRef = 1;
18306 assert( p->nRef>0 || p->owner==0 );
18308 p->nRef++;
18314 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
18335 if( p->nRef>0 && pthread_equal(p->owner, self) ){
18336 p->nRef++;
18339 assert( p->nRef==0 );
18341 p->nRef = 1;
18353 p->nRef++;
18363 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
18378 p->nRef--;
18379 if( p->nRef==0 ) p->owner = 0;
18381 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE );
18384 if( p->nRef==0 ){
18393 printf("leave mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
18450 volatile int nRef; /* Number of enterances */
18502 return p->nRef!=0 && p->owner==GetCurrentThreadId();
18505 return p->nRef==0 || p->owner!=tid;
18654 assert( p->nRef==0 && p->owner==0 );
18678 assert( p->nRef>0 || p->owner==0 );
18680 p->nRef++;
18682 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
18706 p->nRef++;
18714 printf("try mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
18729 assert( p->nRef>0 );
18731 p->nRef--;
18732 if( p->nRef==0 ) p->owner = 0;
18733 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE );
18738 printf("leave mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
23915 int nRef; /* Number of references to this one */
23968 ** The nRef field of the vxworksFileId object is incremented before
23997 pCandidate->nRef++;
24004 pNew->nRef = 1;
24018 assert( pId->nRef>0 );
24019 pId->nRef--;
24020 if( pId->nRef==0 ){
24151 int nRef; /* Number of pointers to this structure */
24285 pInode->nRef--;
24286 if( pInode->nRef==0 ){
24383 pInode->nRef = 1;
24389 pInode->nRef++;
27046 ** nRef
27053 ** Either unixShmNode.mutex must be held or unixShmNode.nRef==0 and
27066 int nRef; /* Number of unixShm objects pointing to this */
27119 assert( sqlite3_mutex_held(pShmNode->mutex) || pShmNode->nRef==0 );
27179 ** Purge the unixShmNodeList list of all entries with unixShmNode.nRef==0.
27187 if( p && p->nRef==0 ){
27343 pShmNode->nRef++;
27669 /* If pShmNode->nRef has reached 0, then close the underlying
27672 assert( pShmNode->nRef>0 );
27673 pShmNode->nRef--;
27674 if( pShmNode->nRef==0 ){
33702 ** nRef
33710 ** Either winShmNode.mutex must be held or winShmNode.nRef==0 and
33728 int nRef; /* Number of winShm objects pointing to this */
33788 assert( sqlite3_mutex_held(pFile->mutex) || pFile->nRef==0 );
33822 ** Purge the winShmNodeList list of all entries with winShmNode.nRef==0.
33836 if( p->nRef==0 ){
33955 pShmNode->nRef++;
34011 /* If pShmNode->nRef has reached 0, then close the underlying
34014 assert( pShmNode->nRef>0 );
34015 pShmNode->nRef--;
34016 if( pShmNode->nRef==0 ){
36061 int nRef; /* Number of referenced pages */
36097 assert( p->nRef || (p->flags&PGHDR_NEED_SYNC) );
36099 return (p==0 || p->nRef || (p->flags&PGHDR_NEED_SYNC)==0);
36231 assert( pCache->nRef==0 && pCache->pDirty==0 );
36298 pPg && (pPg->nRef || (pPg->flags&PGHDR_NEED_SYNC));
36303 for(pPg=pCache->pDirtyTail; pPg && pPg->nRef; pPg=pPg->pDirtyPrev);
36340 if( 0==pPgHdr->nRef ){
36341 pCache->nRef++;
36343 pPgHdr->nRef++;
36357 assert( p->nRef>0 );
36358 p->nRef--;
36359 if( p->nRef==0 ){
36361 pCache->nRef--;
36376 assert(p->nRef>0);
36377 p->nRef++;
36387 assert( p->nRef==1 );
36392 pCache->nRef--;
36405 assert( p->nRef>0 );
36420 if( p->nRef==0 ){
36452 assert( p->nRef>0 );
36596 return pCache->nRef;
36603 return p->nRef;
42222 p->nRef = 1;
42230 assert( p->nRef==1 );
43057 /* pPager->nRef = 0; */
44958 assert( pPg->nRef>0 );
45022 assert( !pPgOld || pPgOld->nRef==1 );
45085 assert( pPg->nRef>0 || pPg->pPager->memDb );
48988 ** to this one BtShared object. BtShared.nRef is the number of
48992 ** mutex, except for nRef and pNext which are accessed under the
48994 ** may not be modified once it is initially set as long as nRef>0.
48996 ** thereafter is unchanged as long as nRef>0.
49043 int nRef; /* Number of references to this structure */
51371 assert( pBt->nRef>0 );
51386 pBt->nRef++;
51477 pBt->nRef = 1;
51553 ** Decrement the BtShared.nRef counter. When it reaches zero,
51555 ** true if the BtShared.nRef counter reaches zero and return
51567 pBt->nRef--;
51568 if( pBt->nRef<=0 ){
52717 VVA_ONLY( int nRef = sqlite3PagerRefcount(pPager) );
52759 assert( nRef>=sqlite3PagerRefcount(pPager) );
57673 int nRef;
57680 nRef = sqlite3PagerRefcount(pBt->pPager);
57747 if( NEVER(nRef != sqlite3PagerRefcount(pBt->pPager)) ){
57750 nRef, sqlite3PagerRefcount(pBt->pPager)
74320 ** Because no reference was made to outer contexts, the pNC->nRef
74376 /* Increment the nRef value on all name contexts from TopNC up to
74380 pTopNC->nRef++;
74576 int nRef = pNC->nRef;
74583 assert( pNC->nRef>=nRef );
74584 if( nRef!=pNC->nRef ){
74985 int nRef = 0; /* Refcount for pOuterNC and outer contexts */
74993 for(pNC=pOuterNC; pNC; pNC=pNC->pNext) nRef += pNC->nRef;
75000 for(pNC=pOuterNC; pNC; pNC=pNC->pNext) nRef -= pNC->nRef;
75001 assert( pItem->isCorrelated==0 && nRef<=0 );
75002 pItem->isCorrelated = (nRef!=0);
76188 pTab->nRef++;
80207 pNew->nRef = 1;
80229 pNew->nRef = 1;
82725 assert( !pTable || pTable->nRef>0 );
82729 if( ((!db || db->pnBytesFreed==0) && (--pTable->nRef)>0) ) return;
83061 pTable->nRef = 1;
86538 pTab->nRef++;
89713 pItem->pTab->nRef++;
97539 pTab->nRef = 1;
99083 if( pTabToDel->nRef==1 ){
99088 pTabToDel->nRef--;
99468 pTab->nRef = 1;
99481 if( pTab->nRef==0xffff ){
99487 pTab->nRef++;
103380 pVTab->nRef++;
103404 assert( pVTab->nRef>0 );
103407 pVTab->nRef--;
103408 if( pVTab->nRef==0 ){
103795 pVTable->nRef = 1;
115551 pDestructor->nRef--;
115552 if( pDestructor->nRef==0 ){
116200 pDestructor->nRef++;
116253 if( pArg && pArg->nRef==0 ){
136605 int nRef;
136728 p->nRef++;
136797 pNode->nRef = 1;
136828 pNode->nRef++;
136844 pNode->nRef = 1;
136985 assert( pNode->nRef>0 );
136986 pNode->nRef--;
136987 if( pNode->nRef==0 ){
138701 assert( pNode->nRef==1 );
138738 pNode->nRef++;