Lines Matching refs:nRef
5510 int nRef; /* NO LONGER USED */ member
8819 i16 nRef; /* Number of users of this page */ member
9654 int nRef; member
9884 int nRef; /* Number of pointers to this structure */ member
9929 u16 nRef; /* Number of pointers to this Table */ member
10659 int nRef; /* Number of names resolved by this context */ member
17455 volatile int nRef; /* Number of entrances */ member
17484 return (p->nRef!=0 && pthread_equal(p->owner, pthread_self())); in pthreadMutexHeld()
17487 return p->nRef==0 || pthread_equal(p->owner, pthread_self())==0; in pthreadMutexNotheld()
17601 assert( p->nRef==0 ); in pthreadMutexFree()
17634 if( p->nRef>0 && pthread_equal(p->owner, self) ){ in pthreadMutexEnter()
17635 p->nRef++; in pthreadMutexEnter()
17638 assert( p->nRef==0 ); in pthreadMutexEnter()
17640 p->nRef = 1; in pthreadMutexEnter()
17648 assert( p->nRef>0 || p->owner==0 ); in pthreadMutexEnter()
17650 p->nRef++; in pthreadMutexEnter()
17656 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexEnter()
17677 if( p->nRef>0 && pthread_equal(p->owner, self) ){ in pthreadMutexTry()
17678 p->nRef++; in pthreadMutexTry()
17681 assert( p->nRef==0 ); in pthreadMutexTry()
17683 p->nRef = 1; in pthreadMutexTry()
17695 p->nRef++; in pthreadMutexTry()
17705 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexTry()
17720 p->nRef--; in pthreadMutexLeave()
17721 if( p->nRef==0 ) p->owner = 0; in pthreadMutexLeave()
17723 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE ); in pthreadMutexLeave()
17726 if( p->nRef==0 ){ in pthreadMutexLeave()
17735 printf("leave mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexLeave()
17792 volatile int nRef; /* Number of enterances */ member
17844 return p->nRef!=0 && p->owner==GetCurrentThreadId(); in winMutexHeld()
17847 return p->nRef==0 || p->owner!=tid; in winMutexNotheld2()
17986 assert( p->nRef==0 && p->owner==0 ); in winMutexFree()
18010 assert( p->nRef>0 || p->owner==0 ); in winMutexEnter()
18012 p->nRef++; in winMutexEnter()
18014 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in winMutexEnter()
18038 p->nRef++; in winMutexTry()
18046 printf("try mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in winMutexTry()
18061 assert( p->nRef>0 ); in winMutexLeave()
18063 p->nRef--; in winMutexLeave()
18064 if( p->nRef==0 ) p->owner = 0; in winMutexLeave()
18065 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE ); in winMutexLeave()
18070 printf("leave mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in winMutexLeave()
23219 int nRef; /* Number of os2ShmLink objects pointing to this */
23287 assert( sqlite3_mutex_held(pNode->mutex) || pNode->nRef==0 );
23408 pNode->nRef++;
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 */
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++;
28197 int nRef; /* Number of unixShm objects pointing to this */
28250 assert( sqlite3_mutex_held(pShmNode->mutex) || pShmNode->nRef==0 );
28318 if( p && p->nRef==0 ){
28474 pShmNode->nRef++;
28787 assert( pShmNode->nRef>0 );
28788 pShmNode->nRef--;
28789 if( pShmNode->nRef==0 ){
33315 int nRef; /* Number of winShm objects pointing to this */
33377 assert( sqlite3_mutex_held(pFile->mutex) || pFile->nRef==0 );
33426 if( p->nRef==0 ){
33547 pShmNode->nRef++;
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;
43857 assert( pPg->nRef>0 );
43920 assert( !pPgOld || pPgOld->nRef==1 );
43983 assert( pPg->nRef>0 || pPg->pPager->memDb );
47774 int nRef; /* Number of references to this structure */
50040 assert( pBt->nRef>0 );
50055 pBt->nRef++;
50145 pBt->nRef = 1;
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)
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++;