Home | History | Annotate | Download | only in orig

Lines Matching refs:nRef

5686   int nRef;                       /* NO LONGER USED */
9080 i16 nRef; /* Number of users of this page */
9907 ** a single object of this type is allocated. FuncDestructor.nRef is set to
9918 int nRef;
10138 int nRef; /* Number of pointers to this structure */
10183 u16 nRef; /* Number of pointers to this Table */
10901 ** or all contexts are check. When a match is found, the nRef member of
10913 int nRef; /* Number of names resolved by this context */
17828 printf("%s mutex %p (%d) with nRef=%ld\n", pAction, (void*)p, p->trace, ulCount);
17926 ** The sqlite3_mutex.id, sqlite3_mutex.nRef, and sqlite3_mutex.owner fields
17943 volatile int nRef; /* Number of entrances */
17972 return (p->nRef!=0 && pthread_equal(p->owner, pthread_self()));
17975 return p->nRef==0 || pthread_equal(p->owner, pthread_self())==0;
18089 assert( p->nRef==0 );
18122 if( p->nRef>0 && pthread_equal(p->owner, self) ){
18123 p->nRef++;
18126 assert( p->nRef==0 );
18128 p->nRef = 1;
18136 assert( p->nRef>0 || p->owner==0 );
18138 p->nRef++;
18144 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
18165 if( p->nRef>0 && pthread_equal(p->owner, self) ){
18166 p->nRef++;
18169 assert( p->nRef==0 );
18171 p->nRef = 1;
18183 p->nRef++;
18193 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
18208 p->nRef--;
18209 if( p->nRef==0 ) p->owner = 0;
18211 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE );
18214 if( p->nRef==0 ){
18223 printf("leave mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
18280 volatile int nRef; /* Number of enterances */
18332 return p->nRef!=0 && p->owner==GetCurrentThreadId();
18335 return p->nRef==0 || p->owner!=tid;
18474 assert( p->nRef==0 && p->owner==0 );
18498 assert( p->nRef>0 || p->owner==0 );
18500 p->nRef++;
18502 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
18526 p->nRef++;
18534 printf("try mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
18549 assert( p->nRef>0 );
18551 p->nRef--;
18552 if( p->nRef==0 ) p->owner = 0;
18553 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE );
18558 printf("leave mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
23631 ** nRef
23640 ** Either os2ShmNode.mutex must be held or os2ShmNode.nRef==0 and
23654 int nRef; /* Number of os2ShmLink objects pointing to this */
23722 assert( sqlite3_mutex_held(pNode->mutex) || pNode->nRef==0 );
23843 pNode->nRef++;
23862 ** Purge the os2ShmNodeList list of all entries with nRef==0.
23878 if( pNode->nRef == 0 ) {
24047 int nRef = -1;
24061 nRef = --pNode->nRef;
24072 if( nRef == 0 )
25784 int nRef; /* Number of references to this one */
25837 ** The nRef field of the vxworksFileId object is incremented before
25866 pCandidate->nRef++;
25873 pNew->nRef = 1;
25887 assert( pId->nRef>0 );
25888 pId->nRef--;
25889 if( pId->nRef==0 ){
26020 int nRef; /* Number of pointers to this structure */
26155 pInode->nRef--;
26156 if( pInode->nRef==0 ){
26253 pInode->nRef = 1;
26259 pInode->nRef++;
28684 ** nRef
28691 ** Either unixShmNode.mutex must be held or unixShmNode.nRef==0 and
28704 int nRef; /* Number of unixShm objects pointing to this */
28757 assert( sqlite3_mutex_held(pShmNode->mutex) || pShmNode->nRef==0 );
28817 ** Purge the unixShmNodeList list of all entries with unixShmNode.nRef==0.
28825 if( p && p->nRef==0 ){
28986 pShmNode->nRef++;
29296 /* If pShmNode->nRef has reached 0, then close the underlying
29299 assert( pShmNode->nRef>0 );
29300 pShmNode->nRef--;
29301 if( pShmNode->nRef==0 ){
34387 ** nRef
34395 ** Either winShmNode.mutex must be held or winShmNode.nRef==0 and
34413 int nRef; /* Number of winShm objects pointing to this */
34475 assert( sqlite3_mutex_held(pFile->mutex) || pFile->nRef==0 );
34512 ** Purge the winShmNodeList list of all entries with winShmNode.nRef==0.
34524 if( p->nRef==0 ){
34647 pShmNode->nRef++;
34703 /* If pShmNode->nRef has reached 0, then close the underlying
34706 assert( pShmNode->nRef>0 );
34707 pShmNode->nRef--;
34708 if( pShmNode->nRef==0 ){
36244 int nRef; /* Number of referenced pages */
36280 assert( p->nRef || (p->flags&PGHDR_NEED_SYNC) );
36282 return (p==0 || p->nRef || (p->flags&PGHDR_NEED_SYNC)==0);
36414 assert( pCache->nRef==0 && pCache->pDirty==0 );
36481 pPg && (pPg->nRef || (pPg->flags&PGHDR_NEED_SYNC));
36486 for(pPg=pCache->pDirtyTail; pPg && pPg->nRef; pPg=pPg->pDirtyPrev);
36523 if( 0==pPgHdr->nRef ){
36524 pCache->nRef++;
36526 pPgHdr->nRef++;
36540 assert( p->nRef>0 );
36541 p->nRef--;
36542 if( p->nRef==0 ){
36544 pCache->nRef--;
36559 assert(p->nRef>0);
36560 p->nRef++;
36570 assert( p->nRef==1 );
36575 pCache->nRef--;
36588 assert( p->nRef>0 );
36603 if( p->nRef==0 ){
36635 assert( p->nRef>0 );
36779 return pCache->nRef;
36786 return p->nRef;
42954 /* pPager->nRef = 0; */
44798 assert( pPg->nRef>0 );
44861 assert( !pPgOld || pPgOld->nRef==1 );
44924 assert( pPg->nRef>0 || pPg->pPager->memDb );
48814 ** to this one BtShared object. BtShared.nRef is the number of
48818 ** mutex, except for nRef and pNext which are accessed under the
48820 ** may not be modified once it is initially set as long as nRef>0.
48822 ** thereafter is unchanged as long as nRef>0.
48868 int nRef; /* Number of references to this structure */
51147 assert( pBt->nRef>0 );
51162 pBt->nRef++;
51252 pBt->nRef = 1;
51328 ** Decrement the BtShared.nRef counter. When it reaches zero,
51330 ** true if the BtShared.nRef counter reaches zero and return
51342 pBt->nRef--;
51343 if( pBt->nRef<=0 ){
52398 VVA_ONLY( int nRef = sqlite3PagerRefcount(pPager) );
52448 assert( nRef==sqlite3PagerRefcount(pPager) );
57294 int nRef;
57301 nRef = sqlite3PagerRefcount(pBt->pPager);
57370 if( NEVER(nRef != sqlite3PagerRefcount(pBt->pPager)) ){
57373 nRef, sqlite3PagerRefcount(pBt->pPager)
73508 ** Because no reference was made to outer contexts, the pNC->nRef
73562 /* Increment the nRef value on all name contexts from TopNC up to
73566 pTopNC->nRef++;
73756 int nRef = pNC->nRef;
73763 assert( pNC->nRef>=nRef );
73764 if( nRef!=pNC->nRef ){
74171 int nRef = 0; /* Refcount for pOuterNC and outer contexts */
74179 for(pNC=pOuterNC; pNC; pNC=pNC->pNext) nRef += pNC->nRef;
74186 for(pNC=pOuterNC; pNC; pNC=pNC->pNext) nRef -= pNC->nRef;
74187 assert( pItem->isCorrelated==0 && nRef<=0 );
74188 pItem->isCorrelated = (nRef!=0);
75305 pTab->nRef++;
79223 pNew->nRef = 1;
79245 pNew->nRef = 1;
81705 assert( !pTable || pTable->nRef>0 );
81709 if( ((!db || db->pnBytesFreed==0) && (--pTable->nRef)>0) ) return;
82032 pTable->nRef = 1;
85510 pTab->nRef++;
88571 pItem->pTab->nRef++;
95897 pTab->nRef = 1;
97433 if( pTabToDel->nRef==1 ){
97438 pTabToDel->nRef--;
97744 pTab->nRef = 1;
97758 pTab->nRef++;
101570 pVTab->nRef++;
101594 assert( pVTab->nRef>0 );
101597 pVTab->nRef--;
101598 if( pVTab->nRef==0 ){
101955 pVTable->nRef = 1;
113151 pDestructor->nRef--;
113152 if( pDestructor->nRef==0 ){
113591 pDestructor->nRef++;
113644 if( pArg && pArg->nRef==0 ){
130373 int nRef;
130496 p->nRef++;
130565 pNode->nRef = 1;
130596 pNode->nRef++;
130612 pNode->nRef = 1;
130753 assert( pNode->nRef>0 );
130754 pNode->nRef--;
130755 if( pNode->nRef==0 ){
132464 assert( pNode->nRef==1 );
132501 pNode->nRef++;