| /sqlite-3.40.0/src/ |
| H A D | mutex_unix.c | 225 assert( p->nRef==0 ); in pthreadMutexFree() 268 p->nRef++; in pthreadMutexEnter() 271 assert( p->nRef==0 ); in pthreadMutexEnter() 273 p->nRef = 1; in pthreadMutexEnter() 283 p->nRef++; in pthreadMutexEnter() 311 p->nRef++; in pthreadMutexTry() 314 assert( p->nRef==0 ); in pthreadMutexTry() 316 p->nRef = 1; in pthreadMutexTry() 328 p->nRef++; in pthreadMutexTry() 353 p->nRef--; in pthreadMutexLeave() [all …]
|
| H A D | mutex_w32.c | 41 volatile int nRef; /* Number of enterances */ member 71 return p->nRef==0 || p->owner!=tid; in winMutexNotheld2() 262 assert( p->nRef==0 && p->owner==0 ); in winMutexFree() 297 assert( p->nRef>0 || p->owner==0 ); in winMutexEnter() 299 p->nRef++; in winMutexEnter() 302 tid, p->id, p, p->trace, p->nRef)); in winMutexEnter() 335 p->nRef++; in winMutexTry() 363 assert( p->nRef>0 ); in winMutexLeave() 365 p->nRef--; in winMutexLeave() 366 if( p->nRef==0 ) p->owner = 0; in winMutexLeave() [all …]
|
| H A D | pcache.c | 528 pPgHdr->nRef++; in sqlite3PcacheFetchFinish() 538 assert( p->nRef>0 ); in sqlite3PcacheRelease() 540 if( (--p->nRef)==0 ){ in sqlite3PcacheRelease() 554 assert(p->nRef>0); in sqlite3PcacheRef() 556 p->nRef++; in sqlite3PcacheRef() 566 assert( p->nRef==1 ); in sqlite3PcacheDrop() 580 assert( p->nRef>0 ); in sqlite3PcacheMakeDirty() 608 if( p->nRef==0 ){ in sqlite3PcacheMakeClean() 653 assert( p->nRef>0 ); in sqlite3PcacheMove() 661 pXPage->nRef++; in sqlite3PcacheMove() [all …]
|
| H A D | resolve.c | 749 pTopNC->nRef++; in lookupName() 915 anRef[i] = p->nRef; in resolveExprStep() 930 p->nRef = anRef[i]; in resolveExprStep() 1217 int nRef = pNC->nRef; in resolveExprStep() local 1227 assert( pNC->nRef>=nRef ); in resolveExprStep() 1228 if( nRef!=pNC->nRef ){ in resolveExprStep() 1757 int nRef = pOuterNC ? pOuterNC->nRef : 0; in resolveSelectStep() local 1773 assert( pItem->fg.isCorrelated==0 && pOuterNC->nRef>=nRef ); in resolveSelectStep() 1774 pItem->fg.isCorrelated = (pOuterNC->nRef>nRef); in resolveSelectStep()
|
| H A D | test_quota.c | 199 if( pFile->nRef ) N++; in quotaGroupOpenFileCount() 220 assert( pGroup->pFiles->nRef==0 ); in quotaRemoveAllFiles() 466 pFile->nRef++; in quotaOpen() 508 if( pFile->nRef ){ in quotaDelete() 535 pFile->nRef--; in quotaClose() 536 if( pFile->nRef==0 ){ in quotaClose() 964 pFile->nRef++; in sqlite3_quota_fopen() 1061 pFile->nRef--; in sqlite3_quota_fclose() 1062 if( pFile->nRef==0 ){ in sqlite3_quota_fclose() 1264 if( pFile->nRef ){ in sqlite3_quota_remove() [all …]
|
| H A D | memdb.c | 80 int nRef; /* Number of users of this MemStore */ member 220 if( p->nRef==1 ){ in memdbClose() 234 p->nRef--; in memdbClose() 235 if( p->nRef<=0 ){ in memdbClose() 553 p->nRef = 1; in memdbOpen() 557 p->nRef++; in memdbOpen()
|
| H A D | test_onefile.c | 104 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() 670 pReal->nRef++; in fsOpen()
|
| H A D | vtab.c | 183 pVTab->nRef++; in sqlite3VtabLock() 207 assert( pVTab->nRef>0 ); in sqlite3VtabUnlock() 211 pVTab->nRef--; in sqlite3VtabUnlock() 212 if( pVTab->nRef==0 ){ in sqlite3VtabUnlock() 632 pVTable->nRef = 1; in vtabCallConstructor() 914 if( p->pVtab->nRef>0 ){ in sqlite3VtabCallDestroy()
|
| H A D | os_unix.c | 989 pCandidate->nRef++; in vxworksFindFileId() 996 pNew->nRef = 1; in vxworksFindFileId() 1010 assert( pId->nRef>0 ); in vxworksReleaseFileId() 1011 pId->nRef--; in vxworksReleaseFileId() 1012 if( pId->nRef==0 ){ in vxworksReleaseFileId() 1329 pInode->nRef--; in releaseInodeInfo() 1330 if( pInode->nRef==0 ){ in releaseInodeInfo() 1437 pInode->nRef = 1; in findInodeInfo() 1444 pInode->nRef++; in findInodeInfo() 4687 pShmNode->nRef++; in unixOpenSharedMemory() [all …]
|
| H A D | test_btree.c | 42 Tcl_ListObjAppendElement(interp, pRet, Tcl_NewIntObj(pBt->nRef)); in sqlite3BtreeSharedCacheReport()
|
| H A D | pcache.h | 43 i16 nRef; /* Number of users of this page */ member
|
| H A D | btreeInt.h | 453 int nRef; /* Number of references to this structure */ member
|
| H A D | tclsqlite.c | 184 int nRef; /* Delete object when this reaches 0 */ member 526 pDb->nRef++; in addDatabaseRef() 534 assert( pDb->nRef>0 ); in delDatabaseRef() 535 pDb->nRef--; in delDatabaseRef() 536 if( pDb->nRef==0 ){ in delDatabaseRef() 3884 p->nRef = 1; in DbMain()
|
| H A D | main.c | 1145 pDestructor->nRef--; in functionDestroy() 1146 if( pDestructor->nRef==0 ){ in functionDestroy() 1925 pDestructor->nRef++; in sqlite3CreateFunc() 1976 pArg->nRef = 0; in createFunctionApi() 1983 if( pArg && pArg->nRef==0 ){ in createFunctionApi()
|
| H A D | os_win.c | 3742 int nRef; /* Number of winShm objects pointing to this */ member 3802 assert( pFile->nRef==0 || sqlite3_mutex_held(pFile->mutex) ); 3849 if( p->nRef==0 ){ 3999 pShmNode->nRef++; 4058 assert( pShmNode->nRef>0 ); 4059 pShmNode->nRef--; 4060 if( pShmNode->nRef==0 ){
|
| H A D | pager.c | 4028 p->nRef = 1; in pagerAcquireMapPage() 4036 assert( p->nRef==1 ); in pagerAcquireMapPage() 4626 if( pList->nRef==0 ){ in sqlite3PagerFlush() 7082 assert( pPg->nRef>0 ); in sqlite3PagerMovepage() 7146 assert( !pPgOld || pPgOld->nRef==1 || CORRUPT_DB ); in sqlite3PagerMovepage() 7148 if( NEVER(pPgOld->nRef>1) ){ in sqlite3PagerMovepage() 7224 assert( pPg->nRef>0 || pPg->pPager->memDb ); in sqlite3PagerGetData()
|
| /sqlite-3.40.0/test/ |
| H A D | dbfuzz.c | 81 int nRef; /* Number of references to this file */ member 116 g.aFile[i].nRef = 0; in formatVfs() 132 if( g.aFile[i].nRef>0 ){ in reformatVfs() 133 fatalError("file %d still open. nRef=%d", i, g.aFile[i].nRef); in reformatVfs() 138 g.aFile[i].nRef = 0; in reformatVfs() 189 pNew->nRef = 0; in createVFile() 211 pVFile->nRef--; in inmemClose() 212 if( pVFile->nRef==0 && pVFile->zFilename==0 ){ in inmemClose() 344 pVFile->nRef++; in inmemOpen() 360 if( pVFile->nRef==0 ){ in inmemDelete()
|
| H A D | fuzzcheck.c | 114 int nRef; /* Number of references to this file */ member 247 g.aFile[i].nRef = 0; in formatVfs() 263 if( g.aFile[i].nRef>0 ){ in reformatVfs() 264 fatalError("file %d still open. nRef=%d", i, g.aFile[i].nRef); in reformatVfs() 269 g.aFile[i].nRef = 0; in reformatVfs() 306 pNew->nRef = 0; in createVFile() 1343 pVFile->nRef--; in inmemClose() 1344 if( pVFile->nRef==0 && pVFile->zFilename==0 ){ in inmemClose() 1471 pVFile->nRef++; in inmemOpen() 1487 if( pVFile->nRef==0 ){ in inmemDelete()
|
| H A D | view3.test | 24 # Ticket [d58ccbb3f1b]: Prevent Table.nRef overflow.
|
| H A D | tester.tcl | 2040 set nRef $stats(ref) 2041 expr {$nRef == 0 || ([sqlite3_get_autocommit db]==0 && $nRef == 1)}
|
| /sqlite-3.40.0/ext/lsm1/lsm-test/ |
| H A D | lsmtest_tdb4.c | 60 int nRef; member 112 pBt->nRef++; in btVfsOpen() 269 p->nRef--; in btDeref() 270 assert( p->nRef>=0 ); in btDeref() 271 if( p->nRef<=0 ) testFree(p); in btDeref() 721 p->nRef = 1; in test_bt_open() 828 while( pCkpter->nRef>0 ){ in bgc_main() 904 pCkpter->nRef = 1; in bgc_attach() 923 pCkpter->nRef++; in bgc_attach() 944 pCkpter->nRef--; in bgc_detach() [all …]
|
| /sqlite-3.40.0/ext/lsm1/ |
| H A D | lsm_file.c | 350 assert( p->nRef==0 ); in assert_lists_are_ok() 1575 assert( p->nRef==0 ); in fsPageGet() 1597 p->nRef = 0; in fsPageGet() 1646 p->nRef++; in fsPageGet() 2128 pPg->nRef = 1; in lsmFsSortedAppend() 2648 assert( pPg->nRef==1 ); in lsmFsFlushWaiting() 2757 pPg->nRef++; in lsmFsPagePersist() 2857 pPg->nRef++; in lsmFsPageRef() 2867 assert( pPg->nRef>0 ); in lsmFsPageRelease() 2868 pPg->nRef--; in lsmFsPageRelease() [all …]
|
| /sqlite-3.40.0/ext/misc/ |
| H A D | vfslog.c | 76 int nRef; /* Number of references to this object */ member 248 p->nRef--; in vlogLogClose() 249 if( p->nRef>0 || p->zFilename==0 ) return; in vlogLogClose() 322 pLog->nRef++; in vlogLogOpen()
|
| /sqlite-3.40.0/ext/rtree/ |
| H A D | rtree.c | 606 assert( p->nRef>0 ); in nodeReference() 607 p->nRef++; in nodeReference() 673 pNode->nRef = 1; in nodeNew() 713 pNode->nRef++; in nodeAcquire() 751 pNode->nRef = 1; in nodeAcquire() 895 assert( pNode->nRef>0 ); in nodeRelease() 897 pNode->nRef--; in nodeRelease() 898 if( pNode->nRef==0 ){ in nodeRelease() 2625 pLeft->nRef++; in SplitNode() 2768 assert( pNode->nRef==1 ); in removeNode() [all …]
|
| /sqlite-3.40.0/ext/fts3/ |
| H A D | fts3.c | 314 int nRef; /* Number of pointers to this object */ member 4017 pHash->nRef--; in hashDestroy() 4018 if( pHash->nRef<=0 ){ in hashDestroy() 4084 pHash->nRef = 0; in sqlite3Fts3Init() 4121 pHash->nRef++; in sqlite3Fts3Init() 4126 pHash->nRef++; in sqlite3Fts3Init() 4132 pHash->nRef++; in sqlite3Fts3Init()
|