Home | History | Annotate | Download | only in dist

Lines Matching defs:nRef

5621   int nRef;                       /* NO LONGER USED */
9835 i16 nRef; /* Number of users of this page */
10656 ** a single object of this type is allocated. FuncDestructor.nRef is set to
10667 int nRef;
10902 int nRef; /* Number of pointers to this structure */
10952 u16 nRef; /* Number of pointers to this Table */
11094 u32 nRef; /* Number of references to this KeyInfo object */
11641 ** or all contexts are check. When a match is found, the nRef member of
11655 int nRef; /* Number of names resolved by this context */
18760 ** The sqlite3_mutex.id, sqlite3_mutex.nRef, and sqlite3_mutex.owner fields
18777 volatile int nRef; /* Number of entrances */
18806 return (p->nRef!=0 && pthread_equal(p->owner, pthread_self()));
18809 return p->nRef==0 || pthread_equal(p->owner, pthread_self())==0;
18929 assert( p->nRef==0 );
18962 if( p->nRef>0 && pthread_equal(p->owner, self) ){
18963 p->nRef++;
18966 assert( p->nRef==0 );
18968 p->nRef = 1;
18976 assert( p->nRef>0 || p->owner==0 );
18978 p->nRef++;
18984 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
19005 if( p->nRef>0 && pthread_equal(p->owner, self) ){
19006 p->nRef++;
19009 assert( p->nRef==0 );
19011 p->nRef = 1;
19023 p->nRef++;
19033 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
19048 p->nRef--;
19049 if( p->nRef==0 ) p->owner = 0;
19051 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE );
19054 if( p->nRef==0 ){
19063 printf("leave mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
19411 volatile int nRef; /* Number of enterances */
19437 return p->nRef!=0 && p->owner==GetCurrentThreadId();
19441 return p->nRef==0 || p->owner!=tid;
19607 assert( p->nRef==0 && p->owner==0 );
19639 assert( p->nRef>0 || p->owner==0 );
19641 p->nRef++;
19643 OSTRACE(("ENTER-MUTEX tid=%lu, mutex=%p (%d), nRef=%d\n",
19644 tid, p, p->trace, p->nRef));
19677 p->nRef++;
19686 OSTRACE(("TRY-MUTEX tid=%lu, mutex=%p (%d), owner=%lu, nRef=%d, rc=%s\n",
19687 tid, p, p->trace, p->owner, p->nRef, sqlite3ErrName(rc)));
19705 assert( p->nRef>0 );
19707 p->nRef--;
19708 if( p->nRef==0 ) p->owner = 0;
19709 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE );
19715 OSTRACE(("LEAVE-MUTEX tid=%lu, mutex=%p (%d), nRef=%d\n",
19716 tid, p, p->trace, p->nRef));
25104 int nRef; /* Number of references to this one */
25157 ** The nRef field of the vxworksFileId object is incremented before
25186 pCandidate->nRef++;
25193 pNew->nRef = 1;
25207 assert( pId->nRef>0 );
25208 pId->nRef--;
25209 if( pId->nRef==0 ){
25340 int nRef; /* Number of pointers to this structure */
25474 pInode->nRef--;
25475 if( pInode->nRef==0 ){
25572 pInode->nRef = 1;
25578 pInode->nRef++;
28291 ** nRef
28298 ** Either unixShmNode.mutex must be held or unixShmNode.nRef==0 and
28311 int nRef; /* Number of unixShm objects pointing to this */
28364 assert( sqlite3_mutex_held(pShmNode->mutex) || pShmNode->nRef==0 );
28440 ** Purge the unixShmNodeList list of all entries with unixShmNode.nRef==0.
28448 if( p && p->nRef==0 ){
28605 pShmNode->nRef++;
28941 /* If pShmNode->nRef has reached 0, then close the underlying
28944 assert( pShmNode->nRef>0 );
28945 pShmNode->nRef--;
28946 if( pShmNode->nRef==0 ){
35323 ** nRef
35331 ** Either winShmNode.mutex must be held or winShmNode.nRef==0 and
35349 int nRef; /* Number of winShm objects pointing to this */
35409 assert( sqlite3_mutex_held(pFile->mutex) || pFile->nRef==0 );
35443 ** Purge the winShmNodeList list of all entries with winShmNode.nRef==0.
35456 if( p->nRef==0 ){
35577 pShmNode->nRef++;
35633 /* If pShmNode->nRef has reached 0, then close the underlying
35636 assert( pShmNode->nRef>0 );
35637 pShmNode->nRef--;
35638 if( pShmNode->nRef==0 ){
37966 int nRef; /* Number of referenced pages */
38003 assert( p->nRef || (p->flags&PGHDR_NEED_SYNC) );
38005 return (p==0 || p->nRef || (p->flags&PGHDR_NEED_SYNC)==0);
38145 assert( pCache->nRef==0 && pCache->pDirty==0 );
38221 pPg && (pPg->nRef || (pPg->flags&PGHDR_NEED_SYNC));
38226 for(pPg=pCache->pDirtyTail; pPg && pPg->nRef; pPg=pPg->pDirtyPrev);
38263 if( 0==pPgHdr->nRef ){
38264 pCache->nRef++;
38266 pPgHdr->nRef++;
38280 assert( p->nRef>0 );
38281 p->nRef--;
38282 if( p->nRef==0 ){
38284 pCache->nRef--;
38299 assert(p->nRef>0);
38300 p->nRef++;
38310 assert( p->nRef==1 );
38315 pCache->nRef--;
38328 assert( p->nRef>0 );
38343 if( p->nRef==0 ){
38375 assert( p->nRef>0 );
38519 return pCache->nRef;
38526 return p->nRef;
44173 p->nRef = 1;
44181 assert( p->nRef==1 );
45027 /* pPager->nRef = 0; */
46977 assert( pPg->nRef>0 );
47041 assert( !pPgOld || pPgOld->nRef==1 );
47104 assert( pPg->nRef>0 || pPg->pPager->memDb );
50993 ** to this one BtShared object. BtShared.nRef is the number of
50997 ** mutex, except for nRef and pNext which are accessed under the
50999 ** may not be modified once it is initially set as long as nRef>0.
51001 ** thereafter is unchanged as long as nRef>0.
51048 int nRef; /* Number of references to this structure */
53396 assert( pBt->nRef>0 );
53411 pBt->nRef++;
53502 pBt->nRef = 1;
53578 ** Decrement the BtShared.nRef counter. When it reaches zero,
53580 ** true if the BtShared.nRef counter reaches zero and return
53592 pBt->nRef--;
53593 if( pBt->nRef<=0 ){
54754 VVA_ONLY( int nRef = sqlite3PagerRefcount(pPager) );
54796 assert( nRef>=sqlite3PagerRefcount(pPager) );
59734 int nRef;
59741 nRef = sqlite3PagerRefcount(pBt->pPager);
59808 if( NEVER(nRef != sqlite3PagerRefcount(pBt->pPager)) ){
59811 nRef, sqlite3PagerRefcount(pBt->pPager)
77238 ** Because no reference was made to outer contexts, the pNC->nRef
77294 /* Increment the nRef value on all name contexts from TopNC up to
77298 pTopNC->nRef++;
77562 int nRef = pNC->nRef;
77566 assert( pNC->nRef>=nRef );
77567 if( nRef!=pNC->nRef ){
77968 int nRef = 0; /* Refcount for pOuterNC and outer contexts */
77976 for(pNC=pOuterNC; pNC; pNC=pNC->pNext) nRefnRef;
77983 for(pNC=pOuterNC; pNC; pNC=pNC->pNext) nRef -= pNC->nRef;
77984 assert( pItem->isCorrelated==0 && nRef<=0 );
77985 pItem->isCorrelated = (nRef!=0);
79262 pTab->nRef++;
83394 pNew->nRef = 1;
83416 pNew->nRef = 1;
86676 assert( !pTable || pTable->nRef>0 );
86680 if( ((!db || db->pnBytesFreed==0) && (--pTable->nRef)>0) ) return;
87032 pTable->nRef = 1;
90891 pTab->nRef++;
94424 pItem->pTab->nRef++;
102410 p->nRef = 1;
102422 assert( p->nRef>0 );
102423 p->nRef--;
102424 if( p->nRef==0 ) sqlite3DbFree(0, p);
102433 assert( p->nRef>0 );
102434 p->nRef++;
102446 SQLITE_PRIVATE int sqlite3KeyInfoIsWriteable(KeyInfo *p){ return p->nRef==1; }
103154 pTab->nRef = 1;
104875 if( pTabToDel->nRef==1 ){
104880 pTabToDel->nRef--;
105292 pTab->nRef = 1;
105315 pTab->nRef++;
105322 if( pTab->nRef>2 ){
105328 assert( pTab->nRef==1 || ((pSel->selFlags&SF_Recursive) && pTab->nRef==2 ));
105466 pTab->nRef = 1;
105479 if( pTab->nRef==0xffff ){
105485 pTab->nRef++;
109459 pVTab->nRef++;
109483 assert( pVTab->nRef>0 );
109486 pVTab->nRef--;
109487 if( pVTab->nRef==0 ){
109874 pVTable->nRef = 1;
122959 pDestructor->nRef--;
122960 if( pDestructor->nRef==0 ){
123620 pDestructor->nRef++;
123674 if( pArg && pArg->nRef==0 ){
144974 int nRef; /* Number of references to this node */
145108 p->nRef++;
145174 pNode->nRef = 1;
145204 pNode->nRef++;
145220 pNode->nRef = 1;
145358 assert( pNode->nRef>0 );
145359 pNode->nRef--;
145360 if( pNode->nRef==0 ){
147075 assert( pNode->nRef==1 );
147112 pNode->nRef++;