Lines Matching refs:nRef

5896   int nRef;                       /* Number of open cursors */  member
10373 i16 nRef; /* Number of users of this page */ member
11256 int nRef; member
11495 int nRef; /* Number of pointers to this structure */ member
11518 u16 nRef; /* Number of pointers to this Table */ member
11668 u32 nRef; /* Number of references to this KeyInfo object */ member
12238 int nRef; /* Number of names resolved by this context */ member
19525 volatile int nRef; /* Number of entrances */ member
19554 return (p->nRef!=0 && pthread_equal(p->owner, pthread_self())); in pthreadMutexHeld()
19557 return p->nRef==0 || pthread_equal(p->owner, pthread_self())==0; in pthreadMutexNotheld()
19675 assert( p->nRef==0 ); in pthreadMutexFree()
19717 if( p->nRef>0 && pthread_equal(p->owner, self) ){ in pthreadMutexEnter()
19718 p->nRef++; in pthreadMutexEnter()
19721 assert( p->nRef==0 ); in pthreadMutexEnter()
19723 p->nRef = 1; in pthreadMutexEnter()
19731 assert( p->nRef>0 || p->owner==0 ); in pthreadMutexEnter()
19733 p->nRef++; in pthreadMutexEnter()
19739 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexEnter()
19760 if( p->nRef>0 && pthread_equal(p->owner, self) ){ in pthreadMutexTry()
19761 p->nRef++; in pthreadMutexTry()
19764 assert( p->nRef==0 ); in pthreadMutexTry()
19766 p->nRef = 1; in pthreadMutexTry()
19778 p->nRef++; in pthreadMutexTry()
19788 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexTry()
19803 p->nRef--; in pthreadMutexLeave()
19804 if( p->nRef==0 ) p->owner = 0; in pthreadMutexLeave()
19806 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE ); in pthreadMutexLeave()
19809 if( p->nRef==0 ){ in pthreadMutexLeave()
19818 printf("leave mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in pthreadMutexLeave()
20177 volatile int nRef; /* Number of enterances */
20203 return p->nRef!=0 && p->owner==GetCurrentThreadId();
20207 return p->nRef==0 || p->owner!=tid;
20375 assert( p->nRef==0 && p->owner==0 );
20410 assert( p->nRef>0 || p->owner==0 );
20412 p->nRef++;
20415 tid, p, p->trace, p->nRef));
20448 p->nRef++;
20458 tid, p, p->trace, p->owner, p->nRef, sqlite3ErrName(rc)));
20476 assert( p->nRef>0 );
20478 p->nRef--;
20479 if( p->nRef==0 ) p->owner = 0;
20480 assert( p->nRef==0 || p->id==SQLITE_MUTEX_RECURSIVE );
20487 tid, p, p->trace, p->nRef));
26285 int nRef; /* Number of references to this one */
26367 pCandidate->nRef++;
26374 pNew->nRef = 1;
26388 assert( pId->nRef>0 );
26389 pId->nRef--;
26390 if( pId->nRef==0 ){
26521 int nRef; /* Number of pointers to this structure */
26663 pInode->nRef--;
26664 if( pInode->nRef==0 ){
26761 pInode->nRef = 1;
26767 pInode->nRef++;
29509 int nRef; /* Number of unixShm objects pointing to this */
29564 assert( sqlite3_mutex_held(pShmNode->mutex) || pShmNode->nRef==0 );
29651 if( p && p->nRef==0 ){
29811 pShmNode->nRef++;
30150 assert( pShmNode->nRef>0 );
30151 pShmNode->nRef--;
30152 if( pShmNode->nRef==0 ){
36642 int nRef; /* Number of winShm objects pointing to this */
36702 assert( sqlite3_mutex_held(pFile->mutex) || pFile->nRef==0 );
36749 if( p->nRef==0 ){
36870 pShmNode->nRef++;
36929 assert( pShmNode->nRef>0 );
36930 pShmNode->nRef--;
36931 if( pShmNode->nRef==0 ){
39275 int nRef; /* Number of referenced pages */
39444 assert( pCache->nRef==0 && pCache->pDirty==0 );
39539 pPg && (pPg->nRef || (pPg->flags&PGHDR_NEED_SYNC));
39544 for(pPg=pCache->pDirtyTail; pPg && pPg->nRef; pPg=pPg->pDirtyPrev);
39611 if( 0==pPgHdr->nRef ){
39612 pCache->nRef++;
39614 pPgHdr->nRef++;
39626 assert( p->nRef>0 );
39627 p->nRef--;
39628 if( p->nRef==0 ){
39629 p->pCache->nRef--;
39643 assert(p->nRef>0);
39644 p->nRef++;
39653 assert( p->nRef==1 );
39657 p->pCache->nRef--;
39670 assert( p->nRef>0 );
39685 if( p->nRef==0 ){
39717 assert( p->nRef>0 );
39859 return pCache->nRef;
39866 return p->nRef;
45541 p->nRef = 1;
45549 assert( p->nRef==1 );
48363 assert( pPg->nRef>0 );
48427 assert( !pPgOld || pPgOld->nRef==1 );
48502 assert( pPg->nRef>0 || pPg->pPager->memDb );
52520 int nRef; /* Number of references to this structure */
55041 assert( pBt->nRef>0 );
55056 pBt->nRef++;
55153 pBt->nRef = 1;
55243 pBt->nRef--;
55244 if( pBt->nRef<=0 ){
56445 VVA_ONLY( int nRef = sqlite3PagerRefcount(pPager) );
56487 assert( nRef>=sqlite3PagerRefcount(pPager) );
61922 int nRef;
61929 nRef = sqlite3PagerRefcount(pBt->pPager);
62002 if( NEVER(nRef != sqlite3PagerRefcount(pBt->pPager)) ){
62005 nRef, sqlite3PagerRefcount(pBt->pPager)
66567 assert( pVtabCursor->pVtab->nRef>0 );
66568 pVtabCursor->pVtab->nRef--;
76940 pVtab->nRef++;
81812 pTopNC->nRef++;
82084 int nRef = pNC->nRef;
82088 assert( pNC->nRef>=nRef );
82089 if( nRef!=pNC->nRef ){
82507 int nRef = 0; /* Refcount for pOuterNC and outer contexts */
82515 for(pNC=pOuterNC; pNC; pNC=pNC->pNext) nRef += pNC->nRef;
82522 for(pNC=pOuterNC; pNC; pNC=pNC->pNext) nRef -= pNC->nRef;
82523 assert( pItem->isCorrelated==0 && nRef<=0 );
82524 pItem->isCorrelated = (nRef!=0);
83852 pTab->nRef++;
88025 pNew->nRef = 1;
88047 pNew->nRef = 1;
91401 assert( !pTable || pTable->nRef>0 );
91405 if( ((!db || db->pnBytesFreed==0) && (--pTable->nRef)>0) ) return;
91754 pTable->nRef = 1;
95623 pTab->nRef++;
99234 pItem->pTab->nRef++;
107456 p->nRef = 1;
107468 assert( p->nRef>0 );
107469 p->nRef--;
107470 if( p->nRef==0 ) sqlite3DbFree(0, p);
107479 assert( p->nRef>0 );
107480 p->nRef++;
107492 SQLITE_PRIVATE int sqlite3KeyInfoIsWriteable(KeyInfo *p){ return p->nRef==1; }
108207 pTab->nRef = 1;
110022 if( pTabToDel->nRef==1 ){
110027 pTabToDel->nRef--;
110464 pTab->nRef = 1;
110487 pTab->nRef++;
110494 if( pTab->nRef>2 ){
110500 assert( pTab->nRef==1 || ((pSel->selFlags&SF_Recursive) && pTab->nRef==2 ));
110640 pTab->nRef = 1;
110653 if( pTab->nRef==0xffff ){
110659 pTab->nRef++;
114665 pVTab->nRef++;
114689 assert( pVTab->nRef>0 );
114692 pVTab->nRef--;
114693 if( pVTab->nRef==0 ){
115102 pVTable->nRef = 1;
115359 if( p->pVtab->nRef>0 ){
128909 pDestructor->nRef--;
128910 if( pDestructor->nRef==0 ){
129595 pDestructor->nRef++;
129655 if( pArg && pArg->nRef==0 ){
151267 int nRef; /* Number of references to this node */
151400 p->nRef++;
151466 pNode->nRef = 1;
151496 pNode->nRef++;
151512 pNode->nRef = 1;
151650 assert( pNode->nRef>0 );
151651 pNode->nRef--;
151652 if( pNode->nRef==0 ){
153366 assert( pNode->nRef==1 );
153403 pNode->nRef++;