Home | History | Annotate | Download | only in dist

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 )
25802 int nRef; /* Number of references to this one */
25855 ** The nRef field of the vxworksFileId object is incremented before
25884 pCandidate->nRef++;
25891 pNew->nRef = 1;
25905 assert( pId->nRef>0 );
25906 pId->nRef--;
25907 if( pId->nRef==0 ){
26038 int nRef; /* Number of pointers to this structure */
26173 pInode->nRef--;
26174 if( pInode->nRef==0 ){
26271 pInode->nRef = 1;
26277 pInode->nRef++;
28704 ** nRef
28711 ** Either unixShmNode.mutex must be held or unixShmNode.nRef==0 and
28724 int nRef; /* Number of unixShm objects pointing to this */
28777 assert( sqlite3_mutex_held(pShmNode->mutex) || pShmNode->nRef==0 );
28837 ** Purge the unixShmNodeList list of all entries with unixShmNode.nRef==0.
28845 if( p && p->nRef==0 ){
29006 pShmNode->nRef++;
29324 /* If pShmNode->nRef has reached 0, then close the underlying
29327 assert( pShmNode->nRef>0 );
29328 pShmNode->nRef--;
29329 if( pShmNode->nRef==0 ){
34415 ** nRef
34423 ** Either winShmNode.mutex must be held or winShmNode.nRef==0 and
34441 int nRef; /* Number of winShm objects pointing to this */
34503 assert( sqlite3_mutex_held(pFile->mutex) || pFile->nRef==0 );
34540 ** Purge the winShmNodeList list of all entries with winShmNode.nRef==0.
34552 if( p->nRef==0 ){
34675 nRef++;
34731 /* If pShmNode->nRef has reached 0, then close the underlying
34734 assert( pShmNode->nRef>0 );
34735 pShmNode->nRef--;
34736 if( pShmNode->nRef==0 ){
36272 int nRef; /* Number of referenced pages */
36308 assert( p->nRef || (p->flags&PGHDR_NEED_SYNC) );
36310 return (p==0 || p->nRef || (p->flags&PGHDR_NEED_SYNC)==0);
36442 assert( pCache->nRef==0 && pCache->pDirty==0 );
36509 pPg && (pPg->nRef || (pPg->flags&PGHDR_NEED_SYNC));
36514 for(pPg=pCache->pDirtyTail; pPg && pPg->nRef; pPg=pPg->pDirtyPrev);
36551 if( 0==pPgHdr->nRef ){
36552 pCache->nRef++;
36554 pPgHdr->nRef++;
36568 assert( p->nRef>0 );
36569 p->nRef--;
36570 if( p->nRef==0 ){
36572 pCache->nRef--;
36587 assert(p->nRef>0);
36588 p->nRef++;
36598 assert( p->nRef==1 );
36603 pCache->nRef--;
36616 assert( p->nRef>0 );
36631 if( p->nRef==0 ){
36663 assert( p->nRef>0 );
36807 return pCache->nRef;
36814 return p->nRef;
42982 /* pPager->nRef = 0; */
44826 assert( pPg->nRef>0 );
44889 assert( !pPgOld || pPgOld->nRef==1 );
44952 assert( pPg->nRef>0 || pPg->pPager->memDb );
48842 ** to this one BtShared object. BtShared.nRef is the number of
48846 ** mutex, except for nRef and pNext which are accessed under the
48848 ** may not be modified once it is initially set as long as nRef>0.
48850 ** thereafter is unchanged as long as nRef>0.
48896 int nRef; /* Number of references to this structure */
51175 assert( pBt->nRef>0 );
51190 pBt->nRef++;
51280 pBt->nRef = 1;
51356 ** Decrement the BtShared.nRef counter. When it reaches zero,
51358 ** true if the BtShared.nRef counter reaches zero and return
51370 pBt->nRef--;
51371 if( pBt->nRef<=0 ){
52426 VVA_ONLY( int nRef = sqlite3PagerRefcount(pPager) );
52476 assert( nRef==sqlite3PagerRefcount(pPager) );
57322 int nRef;
57329 nRef = sqlite3PagerRefcount(pBt->pPager);
57398 if( NEVER(nRef != sqlite3PagerRefcount(pBt->pPager)) ){
57401 nRef, sqlite3PagerRefcount(pBt->pPager)
73544 ** Because no reference was made to outer contexts, the pNC->nRef
73598 /* Increment the nRef value on all name contexts from TopNC up to
73602 pTopNC->nRef++;
73792 int nRef = pNC->nRef;
73799 assert( pNC->nRef>=nRef );
73800 if( nRef!=pNC->nRef ){
74207 int nRef = 0; /* Refcount for pOuterNC and outer contexts */
74215 for(pNC=pOuterNC; pNC; pNC=pNC->pNext) nRef += pNC->nRef;
74222 for(pNC=pOuterNC; pNC; pNC=pNC->pNext) nRef -= pNC->nRef;
74223 assert( pItem->isCorrelated==0 && nRef<=0 );
74224 pItem->isCorrelated = (nRef!=0);
75341 pTab->nRef++;
79259 pNew->nRef = 1;
79281 pNew->nRef = 1;
81741 assert( !pTable || pTable->nRef>0 );
81745 if( ((!db || db->pnBytesFreed==0) && (--pTable->nRef)>0) ) return;
82068 pTable->nRef = 1;
85546 pTab->nRef++;
88607 pItem->pTab->nRef++;
95933 pTab->nRef = 1;
97469 if( pTabToDel->nRef==1 ){
97474 pTabToDel->nRef--;
97780 pTab->nRef = 1;
97794 pTab->nRef++;
101606 pVTab->nRef++;
101630 assert( pVTab->nRef>0 );
101633 pVTab->nRef--;
101634 if( pVTab->nRef==0 ){
101991 pVTable->nRef = 1;
113187 pDestructor->nRef--;
113188 if( pDestructor->nRef==0 ){
113627 pDestructor->nRef++;
113680 if( pArg && pArg->nRef==0 ){
130419 int nRef;
130542 p->nRef++;
130611 pNode->nRef = 1;
130642 pNode->nRef++;
130658 pNode->nRef = 1;
130799 assert( pNode->nRef>0 );
130800 pNode->nRef--;
130801 if( pNode->nRef==0 ){
132510 assert( pNode->nRef==1 );
132547 pNode->nRef++;