Home
last modified time | relevance | path

Searched refs:nRef (Results 1 – 25 of 33) sorted by relevance

12

/external/chromium_org/third_party/sqlite/src/src/
Dmutex_unix.c45 volatile int nRef; /* Number of entrances */ member
74 return (p->nRef!=0 && pthread_equal(p->owner, pthread_self())); in pthreadMutexHeld()
77 return p->nRef==0 || pthread_equal(p->owner, pthread_self())==0; in pthreadMutexNotheld()
191 assert( p->nRef==0 ); in pthreadMutexFree()
224 if( p->nRef>0 && pthread_equal(p->owner, self) ){ in pthreadMutexEnter()
225 p->nRef++; in pthreadMutexEnter()
228 assert( p->nRef==0 ); in pthreadMutexEnter()
230 p->nRef = 1; in pthreadMutexEnter()
238 assert( p->nRef>0 || p->owner==0 ); in pthreadMutexEnter()
240 p->nRef++; in pthreadMutexEnter()
[all …]
Dmutex_w32.c29 volatile int nRef; /* Number of enterances */ member
81 return p->nRef!=0 && p->owner==GetCurrentThreadId(); in winMutexHeld()
84 return p->nRef==0 || p->owner!=tid; in winMutexNotheld2()
223 assert( p->nRef==0 && p->owner==0 ); in winMutexFree()
247 assert( p->nRef>0 || p->owner==0 ); in winMutexEnter()
249 p->nRef++; in winMutexEnter()
251 printf("enter mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in winMutexEnter()
275 p->nRef++; in winMutexTry()
283 printf("try mutex %p (%d) with nRef=%d\n", p, p->trace, p->nRef); in winMutexTry()
298 assert( p->nRef>0 ); in winMutexLeave()
[all …]
Dpcache.c22 int nRef; /* Number of referenced pages */ member
58 assert( p->nRef || (p->flags&PGHDR_NEED_SYNC) ); in pcacheCheckSynced()
60 return (p==0 || p->nRef || (p->flags&PGHDR_NEED_SYNC)==0); in pcacheCheckSynced()
192 assert( pCache->nRef==0 && pCache->pDirty==0 ); in sqlite3PcacheSetPageSize()
247 pPg && (pPg->nRef || (pPg->flags&PGHDR_NEED_SYNC)); in sqlite3PcacheFetch()
252 for(pPg=pCache->pDirtyTail; pPg && pPg->nRef; pPg=pPg->pDirtyPrev); in sqlite3PcacheFetch()
279 if( 0==pPage->nRef ){ in sqlite3PcacheFetch()
280 pCache->nRef++; in sqlite3PcacheFetch()
282 pPage->nRef++; in sqlite3PcacheFetch()
296 assert( p->nRef>0 ); in sqlite3PcacheRelease()
[all …]
Dresolve.c395 pTopNC->nRef++; in lookupName()
585 int nRef = pNC->nRef; in resolveExprStep() local
592 assert( pNC->nRef>=nRef ); in resolveExprStep()
593 if( nRef!=pNC->nRef ){ in resolveExprStep()
Dtest_onefile.c104 int nRef; /* Number of pointers to this structure */ member
381 pReal->nRef--; in fsClose()
382 assert(pReal->nRef>=0); in fsClose()
385 if( pReal->nRef==0 ){ in fsClose()
669 pReal->nRef++; in fsOpen()
Dtest_btree.c38 Tcl_ListObjAppendElement(interp, pRet, Tcl_NewIntObj(pBt->nRef)); in sqlite3BtreeSharedCacheReport()
Dtest_quota.c97 int nRef; /* Number of times this file is open */ member
341 pFile->nRef++; in quotaOpen()
367 pFile->nRef--; in quotaClose()
368 if( pFile->nRef==0 ){ in quotaClose()
919 Tcl_NewWideIntObj(pFile->nRef)); in test_quota_dump()
Dpcache.h40 i16 nRef; /* Number of users of this page */ member
Dos_os2.c773 int nRef; /* Number of os2ShmLink objects pointing to this */ member
841 assert( sqlite3_mutex_held(pNode->mutex) || pNode->nRef==0 ); in os2ShmSystemLock()
962 pNode->nRef++;
997 if( pNode->nRef == 0 ) {
1166 int nRef = -1; local
1180 nRef = --pNode->nRef;
1191 if( nRef == 0 )
Dvtab.c95 pVTab->nRef++; in sqlite3VtabLock()
119 assert( pVTab->nRef>0 ); in sqlite3VtabUnlock()
122 pVTab->nRef--; in sqlite3VtabUnlock()
123 if( pVTab->nRef==0 ){ in sqlite3VtabUnlock()
476 pVTable->nRef = 1; in vtabCallConstructor()
Dos_unix.c703 int nRef; /* Number of references to this one */ member
785 pCandidate->nRef++; in vxworksFindFileId()
792 pNew->nRef = 1; in vxworksFindFileId()
806 assert( pId->nRef>0 ); in vxworksReleaseFileId()
807 pId->nRef--; in vxworksReleaseFileId()
808 if( pId->nRef==0 ){ in vxworksReleaseFileId()
939 int nRef; /* Number of pointers to this structure */ member
1074 pInode->nRef--; in releaseInodeInfo()
1075 if( pInode->nRef==0 ){ in releaseInodeInfo()
1172 pInode->nRef = 1; in findInodeInfo()
[all …]
Dos_win.c1287 int nRef; /* Number of winShm objects pointing to this */ member
1349 assert( sqlite3_mutex_held(pFile->mutex) || pFile->nRef==0 ); in winShmSystemLock()
1398 if( p->nRef==0 ){ in winShmPurge()
1518 pShmNode->nRef++; in winOpenSharedMemory()
1577 assert( pShmNode->nRef>0 ); in winShmUnmap()
1578 pShmNode->nRef--; in winShmUnmap()
1579 if( pShmNode->nRef==0 ){ in winShmUnmap()
DbtreeInt.h432 int nRef; /* Number of references to this structure */ member
Dalter.c792 pNew->nRef = 1; in sqlite3AlterBeginAddColumn()
814 pNew->nRef = 1; in sqlite3AlterBeginAddColumn()
Dmain.c667 pDestructor->nRef--; in functionDestroy()
668 if( pDestructor->nRef==0 ){ in functionDestroy()
1094 pDestructor->nRef++; in sqlite3CreateFunc()
1147 if( pArg && pArg->nRef==0 ){ in sqlite3_create_function_v2()
DsqliteInt.h1004 int nRef; member
1234 int nRef; /* Number of pointers to this structure */ member
1277 u16 nRef; /* Number of pointers to this Table */ member
2000 int nRef; /* Number of names resolved by this context */ member
Dbtree.c1770 assert( pBt->nRef>0 ); in sqlite3BtreeOpen()
1785 pBt->nRef++; in sqlite3BtreeOpen()
1875 pBt->nRef = 1; in sqlite3BtreeOpen()
1965 pBt->nRef--; in removeFromSharingList()
1966 if( pBt->nRef<=0 ){ in removeFromSharingList()
3010 VVA_ONLY( int nRef = sqlite3PagerRefcount(pPager) ); in autoVacuumCommit()
3060 assert( nRef==sqlite3PagerRefcount(pPager) ); in autoVacuumCommit()
7805 int nRef; in sqlite3BtreeIntegrityCheck() local
7812 nRef = sqlite3PagerRefcount(pBt->pPager); in sqlite3BtreeIntegrityCheck()
7881 if( NEVER(nRef != sqlite3PagerRefcount(pBt->pPager)) ){ in sqlite3BtreeIntegrityCheck()
[all …]
Ddelete.c39 pTab->nRef++; in sqlite3SrcListLookup()
Dselect.c1367 pTab->nRef = 1; in sqlite3ResultSetOfSelect()
2892 if( pTabToDel->nRef==1 ){ in flattenSubquery()
2897 pTabToDel->nRef--; in flattenSubquery()
3203 pTab->nRef = 1; in selectExpander()
3217 pTab->nRef++; in selectExpander()
/external/chromium_org/third_party/sqlite/src/ext/rtree/
Drtree.c260 int nRef; member
383 p->nRef++; in nodeReference()
452 pNode->nRef = 1; in nodeNew()
483 pNode->nRef++; in nodeAcquire()
499 pNode->nRef = 1; in nodeAcquire()
640 assert( pNode->nRef>0 ); in nodeRelease()
641 pNode->nRef--; in nodeRelease()
642 if( pNode->nRef==0 ){ in nodeRelease()
2346 assert( pNode->nRef==1 ); in removeNode()
2383 pNode->nRef++; in removeNode()
/external/chromium_org/third_party/sqlite/
Dsystem-sqlite.patch178 assert( pShmNode->nRef>0 );
179 pShmNode->nRef--;
180 if( pShmNode->nRef==0 ){
576 assert( pShmNode->nRef>0 );
577 pShmNode->nRef--;
578 if( pShmNode->nRef==0 ){
/external/chromium_org/third_party/sqlite/src/test/
Dtester.tcl1038 set nRef $stats(ref)
1039 expr {$nRef == 0 || ([sqlite3_get_autocommit db]==0 && $nRef == 1)}
/external/sqlite/dist/orig/
Dsqlite3.c5686 int nRef; /* NO LONGER USED */ member
9080 i16 nRef; /* Number of users of this page */ member
9918 int nRef; member
10138 int nRef; /* Number of pointers to this structure */ member
10183 u16 nRef; /* Number of pointers to this Table */ member
10913 int nRef; /* Number of names resolved by this context */ member
17943 volatile int nRef; /* Number of entrances */ member
17972 return (p->nRef!=0 && pthread_equal(p->owner, pthread_self())); in pthreadMutexHeld()
17975 return p->nRef==0 || pthread_equal(p->owner, pthread_self())==0; in pthreadMutexNotheld()
18089 assert( p->nRef==0 ); in pthreadMutexFree()
[all …]
/external/sqlite/dist/
Dsqlite3.c5686 int nRef; /* NO LONGER USED */ member
9080 i16 nRef; /* Number of users of this page */ member
9918 int nRef; member
10138 int nRef; /* Number of pointers to this structure */ member
10183 u16 nRef; /* Number of pointers to this Table */ member
10913 int nRef; /* Number of names resolved by this context */ member
17943 volatile int nRef; /* Number of entrances */ member
17972 return (p->nRef!=0 && pthread_equal(p->owner, pthread_self())); in pthreadMutexHeld()
17975 return p->nRef==0 || pthread_equal(p->owner, pthread_self())==0; in pthreadMutexNotheld()
18089 assert( p->nRef==0 ); in pthreadMutexFree()
[all …]
/external/chromium_org/third_party/sqlite/amalgamation/
Dsqlite3.c5326 int nRef; /* NO LONGER USED */ member
8534 i16 nRef; /* Number of users of this page */ member
9364 int nRef; member
9594 int nRef; /* Number of pointers to this structure */ member
9637 u16 nRef; /* Number of pointers to this Table */ member
10360 int nRef; /* Number of names resolved by this context */ member
17079 volatile int nRef; /* Number of entrances */ member
17108 return (p->nRef!=0 && pthread_equal(p->owner, pthread_self())); in pthreadMutexHeld()
17111 return p->nRef==0 || pthread_equal(p->owner, pthread_self())==0; in pthreadMutexNotheld()
17225 assert( p->nRef==0 ); in pthreadMutexFree()
[all …]

12