Lines Matching refs:nRef
5510 int nRef; /* NO LONGER USED */
8819 i16 nRef; /* Number of users of this page */
9643 ** a single object of this type is allocated. FuncDestructor.nRef is set to
9654 int nRef;
9884 int nRef; /* Number of pointers to this structure */
9929 u16 nRef; /* Number of pointers to this Table */
10647 ** or all contexts are check. When a match is found, the nRef member of
10659 int nRef; /* Number of names resolved by this context */
17340 printf("%s mutex %p (%d) with nRef=%ld\n", pAction, (void*)p, p->trace, ulCount);
17438 ** The sqlite3_mutex.id, sqlite3_mutex.nRef, and sqlite3_mutex.owner fields
17455 volatile int nRef; /* Number of entrances */
17484 return (p->nRef!=0 && pthread_equal(p->owner, pthread_self()));
17487 return p->nRef==0 || pthread_equal(p->owner, pthread_self())==0;
17601 assert( p->nRef==0 );
17634 if( p->nRef>0 && pthread_equal(p->owner, self) ){
17635 p->nRef++;
17638 assert( p->nRef==0 );
17640 p->nRef = 1;
17648 assert( p->nRef>0 || p->owner==0 );
17650 p->nRef++;
17656 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
17677 if( p->nRef>0 && pthread_equal(p->owner, self) ){
17678 p->nRef++;
17681 assert( p->nRef==0 );
17683 p->nRef = 1;
17695 p->nRef++;
17705 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
17720 p->nRef--;
17721 if( p->nRef==0 ) p->owner = 0;
17723 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE );
17726 if( p->nRef==0 ){
17735 printf("leave mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
17792 volatile int nRef; /* Number of enterances */
17844 return p->nRef!=0 && p->owner==GetCurrentThreadId();
17847 return p->nRef==0 || p->owner!=tid;
17986 assert( p->nRef==0 && p->owner==0 );
18010 assert( p->nRef>0 || p->owner==0 );
18012 p->nRef++;
18014 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
18038 p->nRef++;
18046 printf("try mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
18061 assert( p->nRef>0 );
18063 p->nRef--;
18064 if( p->nRef==0 ) p->owner = 0;
18065 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE );
18070 printf("leave mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef);
23196 ** nRef
23205 ** Either os2ShmNode.mutex must be held or os2ShmNode.nRef==0 and
23219 int nRef; /* Number of os2ShmLink objects pointing to this */
23287 assert( sqlite3_mutex_held(pNode->mutex) || pNode->nRef==0 );
23408 pNode->nRef++;
23427 ** Purge the os2ShmNodeList list of all entries with nRef==0.
23443 if( pNode->nRef == 0 ) {
23612 int nRef = -1;
23626 nRef = --pNode->nRef;
23637 if( nRef == 0 )
25306 int nRef; /* Number of references to this one */
25359 ** The nRef field of the vxworksFileId object is incremented before
25388 pCandidate->nRef++;
25395 pNew->nRef = 1;
25409 assert( pId->nRef>0 );
25410 pId->nRef--;
25411 if( pId->nRef==0 ){
25542 int nRef; /* Number of pointers to this structure */
25677 pInode->nRef--;
25678 if( pInode->nRef==0 ){
25775 pInode->nRef = 1;
25781 pInode->nRef++;
28177 ** nRef
28184 ** Either unixShmNode.mutex must be held or unixShmNode.nRef==0 and
28197 int nRef; /* Number of unixShm objects pointing to this */
28250 assert( sqlite3_mutex_held(pShmNode->mutex) || pShmNode->nRef==0 );
28310 ** Purge the unixShmNodeList list of all entries with unixShmNode.nRef==0.
28318 if( p && p->nRef==0 ){
28474 pShmNode->nRef++;
28784 /* If pShmNode->nRef has reached 0, then close the underlying
28787 assert( pShmNode->nRef>0 );
28788 pShmNode->nRef--;
28789 if( pShmNode->nRef==0 ){
33289 ** nRef
33297 ** Either winShmNode.mutex must be held or winShmNode.nRef==0 and
33315 int nRef; /* Number of winShm objects pointing to this */
33377 assert( sqlite3_mutex_held(pFile->mutex) || pFile->nRef==0 );
33414 ** Purge the winShmNodeList list of all entries with winShmNode.nRef==0.
33426 if( p->nRef==0 ){
33547 pShmNode->nRef++;
33603 /* If pShmNode->nRef has reached 0, then close the underlying
33606 assert( pShmNode->nRef>0 );
33607 pShmNode->nRef--;
33608 if( pShmNode->nRef==0 ){
35197 int nRef; /* Number of referenced pages */
35233 assert( p->nRef || (p->flags&PGHDR_NEED_SYNC) );
35235 return (p==0 || p->nRef || (p->flags&PGHDR_NEED_SYNC)==0);
35367 assert( pCache->nRef==0 && pCache->pDirty==0 );
35422 pPg && (pPg->nRef || (pPg->flags&PGHDR_NEED_SYNC));
35427 for(pPg=pCache->pDirtyTail; pPg && pPg->nRef; pPg=pPg->pDirtyPrev);
35461 if( 0==pPage->nRef ){
35462 pCache->nRef++;
35464 pPage->nRef++;
35478 assert( p->nRef>0 );
35479 p->nRef--;
35480 if( p->nRef==0 ){
35482 pCache->nRef--;
35497 assert(p->nRef>0);
35498 p->nRef++;
35508 assert( p->nRef==1 );
35513 pCache->nRef--;
35526 assert( p->nRef>0 );
35541 if( p->nRef==0 ){
35573 assert( p->nRef>0 );
35717 return pCache->nRef;
35724 return p->nRef;
42045 /* pPager->nRef = 0; */
43857 assert( pPg->nRef>0 );
43920 assert( !pPgOld || pPgOld->nRef==1 );
43983 assert( pPg->nRef>0 || pPg->pPager->memDb );
47717 ** to this one BtShared object. BtShared.nRef is the number of
47721 ** mutex, except for nRef and pNext which are accessed under the
47723 ** may not be modified once it is initially set as long as nRef>0.
47725 ** thereafter is unchanged as long as nRef>0.
47774 int nRef; /* Number of references to this structure */
50040 assert( pBt->nRef>0 );
50055 pBt->nRef++;
50145 pBt->nRef = 1;
50221 ** Decrement the BtShared.nRef counter. When it reaches zero,
50223 ** true if the BtShared.nRef counter reaches zero and return
50235 pBt->nRef--;
50236 if( pBt->nRef<=0 ){
51281 VVA_ONLY( int nRef = sqlite3PagerRefcount(pPager) );
51331 assert( nRef==sqlite3PagerRefcount(pPager) );
56107 int nRef;
56114 nRef = sqlite3PagerRefcount(pBt->pPager);
56183 if( NEVER(nRef != sqlite3PagerRefcount(pBt->pPager)) ){
56186 nRef, sqlite3PagerRefcount(pBt->pPager)
72137 ** Because no reference was made to outer contexts, the pNC->nRef
72191 /* Increment the nRef value on all name contexts from TopNC up to
72195 pTopNC->nRef++;
72385 int nRef = pNC->nRef;
72392 assert( pNC->nRef>=nRef );
72393 if( nRef!=pNC->nRef ){
72800 int nRef = 0; /* Refcount for pOuterNC and outer contexts */
72808 for(pNC=pOuterNC; pNC; pNC=pNC->pNext) nRef += pNC->nRef;
72815 for(pNC=pOuterNC; pNC; pNC=pNC->pNext) nRef -= pNC->nRef;
72816 assert( pItem->isCorrelated==0 && nRef<=0 );
72817 pItem->isCorrelated = (nRef!=0);
73932 pTab->nRef++;
77569 pNew->nRef = 1;
77591 pNew->nRef = 1;
79645 assert( !pTable || pTable->nRef>0 );
79649 if( ((!db || db->pnBytesFreed==0) && (--pTable->nRef)>0) ) return;
79972 pTable->nRef = 1;
83437 pTab->nRef++;
86490 pItem->pTab->nRef++;
93737 pTab->nRef = 1;
95262 if( pTabToDel->nRef==1 ){
95267 pTabToDel->nRef--;
95573 pTab->nRef = 1;
95587 pTab->nRef++;
99384 pVTab->nRef++;
99408 assert( pVTab->nRef>0 );
99411 pVTab->nRef--;
99412 if( pVTab->nRef==0 ){
99768 pVTable->nRef = 1;
110826 pDestructor->nRef--;
110827 if( pDestructor->nRef==0 ){
111253 pDestructor->nRef++;
111306 if( pArg && pArg->nRef==0 ){
127289 int nRef;
127412 p->nRef++;
127481 pNode->nRef = 1;
127512 pNode->nRef++;
127528 pNode->nRef = 1;
127669 assert( pNode->nRef>0 );
127670 pNode->nRef--;
127671 if( pNode->nRef==0 ){
129375 assert( pNode->nRef==1 );
129412 pNode->nRef++;