sqlite3GlobalConfig 12795 third_party/sqlite/amalgamation/sqlite3.c nByte += sqlite3GlobalConfig.m.xRoundup(sizeof(HashElem)) * ( sqlite3GlobalConfig 14473 third_party/sqlite/amalgamation/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 14526 third_party/sqlite/amalgamation/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 14769 third_party/sqlite/amalgamation/sqlite3.c if( !sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 14883 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3GlobalConfig.bMemstat || sqlite3GlobalConfig.bCoreMutex==0 sqlite3GlobalConfig 14960 third_party/sqlite/amalgamation/sqlite3.c if( p && sqlite3GlobalConfig.m.xMalloc==sqlite3MemMalloc ){ sqlite3GlobalConfig 14979 third_party/sqlite/amalgamation/sqlite3.c if( p && sqlite3GlobalConfig.m.xMalloc==sqlite3MemMalloc ){ sqlite3GlobalConfig 15001 third_party/sqlite/amalgamation/sqlite3.c if( p && sqlite3GlobalConfig.m.xMalloc==sqlite3MemMalloc ){ sqlite3GlobalConfig 15331 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.bMemstat==0 && mem3.mutex==0 ){ sqlite3GlobalConfig 15662 third_party/sqlite/amalgamation/sqlite3.c if( !sqlite3GlobalConfig.pHeap ){ sqlite3GlobalConfig 15668 third_party/sqlite/amalgamation/sqlite3.c mem3.aPool = (Mem3Block *)sqlite3GlobalConfig.pHeap; sqlite3GlobalConfig 15669 third_party/sqlite/amalgamation/sqlite3.c mem3.nPool = (sqlite3GlobalConfig.nHeap / sizeof(Mem3Block)) - 2; sqlite3GlobalConfig 16069 third_party/sqlite/amalgamation/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 16269 third_party/sqlite/amalgamation/sqlite3.c nByte = sqlite3GlobalConfig.nHeap; sqlite3GlobalConfig 16270 third_party/sqlite/amalgamation/sqlite3.c zByte = (u8*)sqlite3GlobalConfig.pHeap; sqlite3GlobalConfig 16274 third_party/sqlite/amalgamation/sqlite3.c nMinLog = memsys5Log(sqlite3GlobalConfig.mnReq); sqlite3GlobalConfig 16300 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.bMemstat==0 ){ sqlite3GlobalConfig 16414 third_party/sqlite/amalgamation/sqlite3.c if( !sqlite3GlobalConfig.mutex.xMutexAlloc ){ sqlite3GlobalConfig 16421 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_methods *pTo = &sqlite3GlobalConfig.mutex; sqlite3GlobalConfig 16423 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.bCoreMutex ){ sqlite3GlobalConfig 16433 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3GlobalConfig.mutex.xMutexInit(); sqlite3GlobalConfig 16448 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.mutex.xMutexEnd ){ sqlite3GlobalConfig 16449 third_party/sqlite/amalgamation/sqlite3.c rc = sqlite3GlobalConfig.mutex.xMutexEnd(); sqlite3GlobalConfig 16466 third_party/sqlite/amalgamation/sqlite3.c return sqlite3GlobalConfig.mutex.xMutexAlloc(id); sqlite3GlobalConfig 16470 third_party/sqlite/amalgamation/sqlite3.c if( !sqlite3GlobalConfig.bCoreMutex ){ sqlite3GlobalConfig 16474 third_party/sqlite/amalgamation/sqlite3.c return sqlite3GlobalConfig.mutex.xMutexAlloc(id); sqlite3GlobalConfig 16482 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.mutex.xMutexFree(p); sqlite3GlobalConfig 16492 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.mutex.xMutexEnter(p); sqlite3GlobalConfig 16503 third_party/sqlite/amalgamation/sqlite3.c return sqlite3GlobalConfig.mutex.xMutexTry(p); sqlite3GlobalConfig 16516 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.mutex.xMutexLeave(p); sqlite3GlobalConfig 16526 third_party/sqlite/amalgamation/sqlite3.c return p==0 || sqlite3GlobalConfig.mutex.xMutexHeld(p); sqlite3GlobalConfig 16529 third_party/sqlite/amalgamation/sqlite3.c return p==0 || sqlite3GlobalConfig.mutex.xMutexNotheld(p); sqlite3GlobalConfig 17862 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.m.xMalloc==0 ){ sqlite3GlobalConfig 17866 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.bCoreMutex ){ sqlite3GlobalConfig 17869 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.pScratch && sqlite3GlobalConfig.szScratch>=100 sqlite3GlobalConfig 17870 third_party/sqlite/amalgamation/sqlite3.c && sqlite3GlobalConfig.nScratch>0 ){ sqlite3GlobalConfig 17873 third_party/sqlite/amalgamation/sqlite3.c sz = ROUNDDOWN8(sqlite3GlobalConfig.szScratch); sqlite3GlobalConfig 17874 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.szScratch = sz; sqlite3GlobalConfig 17875 third_party/sqlite/amalgamation/sqlite3.c pSlot = (ScratchFreeslot*)sqlite3GlobalConfig.pScratch; sqlite3GlobalConfig 17876 third_party/sqlite/amalgamation/sqlite3.c n = sqlite3GlobalConfig.nScratch; sqlite3GlobalConfig 17887 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.pScratch = 0; sqlite3GlobalConfig 17888 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.szScratch = 0; sqlite3GlobalConfig 17889 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.nScratch = 0; sqlite3GlobalConfig 17891 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.pPage==0 || sqlite3GlobalConfig.szPage<512 sqlite3GlobalConfig 17892 third_party/sqlite/amalgamation/sqlite3.c || sqlite3GlobalConfig.nPage<1 ){ sqlite3GlobalConfig 17893 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.pPage = 0; sqlite3GlobalConfig 17894 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.szPage = 0; sqlite3GlobalConfig 17895 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.nPage = 0; sqlite3GlobalConfig 17897 third_party/sqlite/amalgamation/sqlite3.c return sqlite3GlobalConfig.m.xInit(sqlite3GlobalConfig.m.pAppData); sqlite3GlobalConfig 17913 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.m.xShutdown ){ sqlite3GlobalConfig 17914 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.m.xShutdown(sqlite3GlobalConfig.m.pAppData); sqlite3GlobalConfig 17970 third_party/sqlite/amalgamation/sqlite3.c nFull = sqlite3GlobalConfig.m.xRoundup(n); sqlite3GlobalConfig 17981 third_party/sqlite/amalgamation/sqlite3.c p = sqlite3GlobalConfig.m.xMalloc(nFull); sqlite3GlobalConfig 17985 third_party/sqlite/amalgamation/sqlite3.c p = sqlite3GlobalConfig.m.xMalloc(nFull); sqlite3GlobalConfig 18012 third_party/sqlite/amalgamation/sqlite3.c }else if( sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 18017 third_party/sqlite/amalgamation/sqlite3.c p = sqlite3GlobalConfig.m.xMalloc(n); sqlite3GlobalConfig 18059 third_party/sqlite/amalgamation/sqlite3.c if( mem0.nScratchFree && sqlite3GlobalConfig.szScratch>=n ){ sqlite3GlobalConfig 18067 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 18074 third_party/sqlite/amalgamation/sqlite3.c p = sqlite3GlobalConfig.m.xMalloc(n); sqlite3GlobalConfig 18104 third_party/sqlite/amalgamation/sqlite3.c if( p>=sqlite3GlobalConfig.pScratch && p<mem0.pScratchEnd ){ sqlite3GlobalConfig 18112 third_party/sqlite/amalgamation/sqlite3.c assert( mem0.nScratchFree <= (u32)sqlite3GlobalConfig.nScratch ); sqlite3GlobalConfig 18120 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 18126 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.m.xFree(p); sqlite3GlobalConfig 18129 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.m.xFree(p); sqlite3GlobalConfig 18153 third_party/sqlite/amalgamation/sqlite3.c return sqlite3GlobalConfig.m.xSize(p); sqlite3GlobalConfig 18163 third_party/sqlite/amalgamation/sqlite3.c return sqlite3GlobalConfig.m.xSize(p); sqlite3GlobalConfig 18174 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 18178 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.m.xFree(p); sqlite3GlobalConfig 18181 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.m.xFree(p); sqlite3GlobalConfig 18232 third_party/sqlite/amalgamation/sqlite3.c nNew = sqlite3GlobalConfig.m.xRoundup(nBytes); sqlite3GlobalConfig 18235 third_party/sqlite/amalgamation/sqlite3.c }else if( sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 18244 third_party/sqlite/amalgamation/sqlite3.c pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); sqlite3GlobalConfig 18247 third_party/sqlite/amalgamation/sqlite3.c pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); sqlite3GlobalConfig 18255 third_party/sqlite/amalgamation/sqlite3.c pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); sqlite3GlobalConfig 19465 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.xLog(sqlite3GlobalConfig.pLogArg, iErrCode, sqlite3GlobalConfig 19474 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.xLog ){ sqlite3GlobalConfig 21282 third_party/sqlite/amalgamation/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 21296 third_party/sqlite/amalgamation/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 34459 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.pcache.xUnpin(pCache->pCache, p, 0); sqlite3GlobalConfig 34469 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.pcache.xInit==0 ){ sqlite3GlobalConfig 34475 third_party/sqlite/amalgamation/sqlite3.c return sqlite3GlobalConfig.pcache.xInit(sqlite3GlobalConfig.pcache.pArg); sqlite3GlobalConfig 34478 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.pcache.xShutdown ){ sqlite3GlobalConfig 34480 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.pcache.xShutdown(sqlite3GlobalConfig.pcache.pArg); sqlite3GlobalConfig 34519 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.pcache.xDestroy(pCache->pCache); sqlite3GlobalConfig 34549 third_party/sqlite/amalgamation/sqlite3.c p = sqlite3GlobalConfig.pcache.xCreate(nByte, pCache->bPurgeable); sqlite3GlobalConfig 34553 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.pcache.xCachesize(p, pCache->nMax); sqlite3GlobalConfig 34559 third_party/sqlite/amalgamation/sqlite3.c pPage = sqlite3GlobalConfig.pcache.xFetch(pCache->pCache, pgno, eCreate); sqlite3GlobalConfig 34587 third_party/sqlite/amalgamation/sqlite3.c pPage = sqlite3GlobalConfig.pcache.xFetch(pCache->pCache, pgno, 2); sqlite3GlobalConfig 34660 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.pcache.xUnpin(pCache->pCache, p, 1); sqlite3GlobalConfig 34718 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.pcache.xRekey(pCache->pCache, p, p->pgno, newPgno); sqlite3GlobalConfig 34755 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.pcache.xTruncate(pCache->pCache, pgno+1); sqlite3GlobalConfig 34764 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.pcache.xDestroy(pCache->pCache); sqlite3GlobalConfig 34876 third_party/sqlite/amalgamation/sqlite3.c nPage = sqlite3GlobalConfig.pcache.xPagecount(pCache->pCache); sqlite3GlobalConfig 34896 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.pcache.xCachesize(pCache->pCache, mxPage); sqlite3GlobalConfig 35435 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.bCoreMutex ){ sqlite3GlobalConfig 35484 third_party/sqlite/amalgamation/sqlite3.c int separateCache = sqlite3GlobalConfig.bCoreMutex>0; sqlite3GlobalConfig 47190 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.sharedCacheEnabled = enable; sqlite3GlobalConfig 48996 third_party/sqlite/amalgamation/sqlite3.c if( SQLITE_THREADSAFE && sqlite3GlobalConfig.bCoreMutex ){ sqlite3GlobalConfig 63169 third_party/sqlite/amalgamation/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 63172 third_party/sqlite/amalgamation/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 68374 third_party/sqlite/amalgamation/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 107369 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.isInit ) return SQLITE_OK; sqlite3GlobalConfig 107390 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.isMutexInit = 1; sqlite3GlobalConfig 107391 third_party/sqlite/amalgamation/sqlite3.c if( !sqlite3GlobalConfig.isMallocInit ){ sqlite3GlobalConfig 107395 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.isMallocInit = 1; sqlite3GlobalConfig 107396 third_party/sqlite/amalgamation/sqlite3.c if( !sqlite3GlobalConfig.pInitMutex ){ sqlite3GlobalConfig 107397 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.pInitMutex = sqlite3GlobalConfig 107399 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.bCoreMutex && !sqlite3GlobalConfig.pInitMutex ){ sqlite3GlobalConfig 107405 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.nRefInitMutex++; sqlite3GlobalConfig 107429 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_enter(sqlite3GlobalConfig.pInitMutex); sqlite3GlobalConfig 107430 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.isInit==0 && sqlite3GlobalConfig.inProgress==0 ){ sqlite3GlobalConfig 107432 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.inProgress = 1; sqlite3GlobalConfig 107435 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.isPCacheInit==0 ){ sqlite3GlobalConfig 107439 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.isPCacheInit = 1; sqlite3GlobalConfig 107443 third_party/sqlite/amalgamation/sqlite3.c sqlite3PCacheBufferSetup( sqlite3GlobalConfig.pPage, sqlite3GlobalConfig 107444 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.szPage, sqlite3GlobalConfig.nPage); sqlite3GlobalConfig 107445 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.isInit = 1; sqlite3GlobalConfig 107447 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.inProgress = 0; sqlite3GlobalConfig 107449 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_leave(sqlite3GlobalConfig.pInitMutex); sqlite3GlobalConfig 107455 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.nRefInitMutex--; sqlite3GlobalConfig 107456 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.nRefInitMutex<=0 ){ sqlite3GlobalConfig 107457 third_party/sqlite/amalgamation/sqlite3.c assert( sqlite3GlobalConfig.nRefInitMutex==0 ); sqlite3GlobalConfig 107458 third_party/sqlite/amalgamation/sqlite3.c sqlite3_mutex_free(sqlite3GlobalConfig.pInitMutex); sqlite3GlobalConfig 107459 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.pInitMutex = 0; sqlite3GlobalConfig 107494 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.isInit ){ sqlite3GlobalConfig 107497 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.isInit = 0; sqlite3GlobalConfig 107499 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.isPCacheInit ){ sqlite3GlobalConfig 107501 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.isPCacheInit = 0; sqlite3GlobalConfig 107503 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.isMallocInit ){ sqlite3GlobalConfig 107505 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.isMallocInit = 0; sqlite3GlobalConfig 107507 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.isMutexInit ){ sqlite3GlobalConfig 107509 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.isMutexInit = 0; sqlite3GlobalConfig 107530 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.isInit ) return SQLITE_MISUSE_BKPT; sqlite3GlobalConfig 107541 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.bCoreMutex = 0; sqlite3GlobalConfig 107542 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.bFullMutex = 0; sqlite3GlobalConfig 107548 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.bCoreMutex = 1; sqlite3GlobalConfig 107549 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.bFullMutex = 0; sqlite3GlobalConfig 107554 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.bCoreMutex = 1; sqlite3GlobalConfig 107555 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.bFullMutex = 1; sqlite3GlobalConfig 107560 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.mutex = *va_arg(ap, sqlite3_mutex_methods*); sqlite3GlobalConfig 107565 third_party/sqlite/amalgamation/sqlite3.c *va_arg(ap, sqlite3_mutex_methods*) = sqlite3GlobalConfig.mutex; sqlite3GlobalConfig 107573 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.m = *va_arg(ap, sqlite3_mem_methods*); sqlite3GlobalConfig 107578 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.m.xMalloc==0 ) sqlite3MemSetDefault(); sqlite3GlobalConfig 107579 third_party/sqlite/amalgamation/sqlite3.c *va_arg(ap, sqlite3_mem_methods*) = sqlite3GlobalConfig.m; sqlite3GlobalConfig 107584 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.bMemstat = va_arg(ap, int); sqlite3GlobalConfig 107589 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.pScratch = va_arg(ap, void*); sqlite3GlobalConfig 107590 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.szScratch = va_arg(ap, int); sqlite3GlobalConfig 107591 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.nScratch = va_arg(ap, int); sqlite3GlobalConfig 107596 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.pPage = va_arg(ap, void*); sqlite3GlobalConfig 107597 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.szPage = va_arg(ap, int); sqlite3GlobalConfig 107598 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.nPage = va_arg(ap, int); sqlite3GlobalConfig 107604 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.pcache = *va_arg(ap, sqlite3_pcache_methods*); sqlite3GlobalConfig 107609 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.pcache.xInit==0 ){ sqlite3GlobalConfig 107612 third_party/sqlite/amalgamation/sqlite3.c *va_arg(ap, sqlite3_pcache_methods*) = sqlite3GlobalConfig.pcache; sqlite3GlobalConfig 107619 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.pHeap = va_arg(ap, void*); sqlite3GlobalConfig 107620 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.nHeap = va_arg(ap, int); sqlite3GlobalConfig 107621 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.mnReq = va_arg(ap, int); sqlite3GlobalConfig 107623 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.mnReq<1 ){ sqlite3GlobalConfig 107624 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.mnReq = 1; sqlite3GlobalConfig 107625 third_party/sqlite/amalgamation/sqlite3.c }else if( sqlite3GlobalConfig.mnReq>(1<<12) ){ sqlite3GlobalConfig 107627 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.mnReq = (1<<12); sqlite3GlobalConfig 107630 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.pHeap==0 ){ sqlite3GlobalConfig 107636 third_party/sqlite/amalgamation/sqlite3.c memset(&sqlite3GlobalConfig.m, 0, sizeof(sqlite3GlobalConfig.m)); sqlite3GlobalConfig 107643 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.m = *sqlite3MemGetMemsys3(); sqlite3GlobalConfig 107646 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.m = *sqlite3MemGetMemsys5(); sqlite3GlobalConfig 107654 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.szLookaside = va_arg(ap, int); sqlite3GlobalConfig 107655 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.nLookaside = va_arg(ap, int); sqlite3GlobalConfig 107669 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.xLog = va_arg(ap, LOGFUNC_t); sqlite3GlobalConfig 107670 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.pLogArg = va_arg(ap, void*); sqlite3GlobalConfig 109072 third_party/sqlite/amalgamation/sqlite3.c if( sqlite3GlobalConfig.bCoreMutex==0 ){ sqlite3GlobalConfig 109079 third_party/sqlite/amalgamation/sqlite3.c isThreadsafe = sqlite3GlobalConfig.bFullMutex; sqlite3GlobalConfig 109083 third_party/sqlite/amalgamation/sqlite3.c }else if( sqlite3GlobalConfig.sharedCacheEnabled ){ sqlite3GlobalConfig 109269 third_party/sqlite/amalgamation/sqlite3.c setupLookaside(db, 0, sqlite3GlobalConfig.szLookaside, sqlite3GlobalConfig 109270 third_party/sqlite/amalgamation/sqlite3.c sqlite3GlobalConfig.nLookaside); sqlite3GlobalConfig 109276 third_party/sqlite/amalgamation/sqlite3.c assert( db->mutex!=0 || isThreadsafe==0 || sqlite3GlobalConfig.bFullMutex==0 ); sqlite3GlobalConfig 109482 third_party/sqlite/amalgamation/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 109489 third_party/sqlite/amalgamation/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 109496 third_party/sqlite/amalgamation/sqlite3.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 71 third_party/sqlite/src/src/btree.c sqlite3GlobalConfig.sharedCacheEnabled = enable; sqlite3GlobalConfig 1877 third_party/sqlite/src/src/btree.c if( SQLITE_THREADSAFE && sqlite3GlobalConfig.bCoreMutex ){ sqlite3GlobalConfig 124 third_party/sqlite/src/src/main.c if( sqlite3GlobalConfig.isInit ) return SQLITE_OK; sqlite3GlobalConfig 145 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.isMutexInit = 1; sqlite3GlobalConfig 146 third_party/sqlite/src/src/main.c if( !sqlite3GlobalConfig.isMallocInit ){ sqlite3GlobalConfig 150 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.isMallocInit = 1; sqlite3GlobalConfig 151 third_party/sqlite/src/src/main.c if( !sqlite3GlobalConfig.pInitMutex ){ sqlite3GlobalConfig 152 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.pInitMutex = sqlite3GlobalConfig 154 third_party/sqlite/src/src/main.c if( sqlite3GlobalConfig.bCoreMutex && !sqlite3GlobalConfig.pInitMutex ){ sqlite3GlobalConfig 160 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.nRefInitMutex++; sqlite3GlobalConfig 184 third_party/sqlite/src/src/main.c sqlite3_mutex_enter(sqlite3GlobalConfig.pInitMutex); sqlite3GlobalConfig 185 third_party/sqlite/src/src/main.c if( sqlite3GlobalConfig.isInit==0 && sqlite3GlobalConfig.inProgress==0 ){ sqlite3GlobalConfig 187 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.inProgress = 1; sqlite3GlobalConfig 190 third_party/sqlite/src/src/main.c if( sqlite3GlobalConfig.isPCacheInit==0 ){ sqlite3GlobalConfig 194 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.isPCacheInit = 1; sqlite3GlobalConfig 198 third_party/sqlite/src/src/main.c sqlite3PCacheBufferSetup( sqlite3GlobalConfig.pPage, sqlite3GlobalConfig 199 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.szPage, sqlite3GlobalConfig.nPage); sqlite3GlobalConfig 200 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.isInit = 1; sqlite3GlobalConfig 202 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.inProgress = 0; sqlite3GlobalConfig 204 third_party/sqlite/src/src/main.c sqlite3_mutex_leave(sqlite3GlobalConfig.pInitMutex); sqlite3GlobalConfig 210 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.nRefInitMutex--; sqlite3GlobalConfig 211 third_party/sqlite/src/src/main.c if( sqlite3GlobalConfig.nRefInitMutex<=0 ){ sqlite3GlobalConfig 212 third_party/sqlite/src/src/main.c assert( sqlite3GlobalConfig.nRefInitMutex==0 ); sqlite3GlobalConfig 213 third_party/sqlite/src/src/main.c sqlite3_mutex_free(sqlite3GlobalConfig.pInitMutex); sqlite3GlobalConfig 214 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.pInitMutex = 0; sqlite3GlobalConfig 249 third_party/sqlite/src/src/main.c if( sqlite3GlobalConfig.isInit ){ sqlite3GlobalConfig 252 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.isInit = 0; sqlite3GlobalConfig 254 third_party/sqlite/src/src/main.c if( sqlite3GlobalConfig.isPCacheInit ){ sqlite3GlobalConfig 256 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.isPCacheInit = 0; sqlite3GlobalConfig 258 third_party/sqlite/src/src/main.c if( sqlite3GlobalConfig.isMallocInit ){ sqlite3GlobalConfig 260 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.isMallocInit = 0; sqlite3GlobalConfig 262 third_party/sqlite/src/src/main.c if( sqlite3GlobalConfig.isMutexInit ){ sqlite3GlobalConfig 264 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.isMutexInit = 0; sqlite3GlobalConfig 285 third_party/sqlite/src/src/main.c if( sqlite3GlobalConfig.isInit ) return SQLITE_MISUSE_BKPT; sqlite3GlobalConfig 296 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.bCoreMutex = 0; sqlite3GlobalConfig 297 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.bFullMutex = 0; sqlite3GlobalConfig 303 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.bCoreMutex = 1; sqlite3GlobalConfig 304 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.bFullMutex = 0; sqlite3GlobalConfig 309 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.bCoreMutex = 1; sqlite3GlobalConfig 310 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.bFullMutex = 1; sqlite3GlobalConfig 315 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.mutex = *va_arg(ap, sqlite3_mutex_methods*); sqlite3GlobalConfig 320 third_party/sqlite/src/src/main.c *va_arg(ap, sqlite3_mutex_methods*) = sqlite3GlobalConfig.mutex; sqlite3GlobalConfig 328 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.m = *va_arg(ap, sqlite3_mem_methods*); sqlite3GlobalConfig 333 third_party/sqlite/src/src/main.c if( sqlite3GlobalConfig.m.xMalloc==0 ) sqlite3MemSetDefault(); sqlite3GlobalConfig 334 third_party/sqlite/src/src/main.c *va_arg(ap, sqlite3_mem_methods*) = sqlite3GlobalConfig.m; sqlite3GlobalConfig 339 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.bMemstat = va_arg(ap, int); sqlite3GlobalConfig 344 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.pScratch = va_arg(ap, void*); sqlite3GlobalConfig 345 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.szScratch = va_arg(ap, int); sqlite3GlobalConfig 346 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.nScratch = va_arg(ap, int); sqlite3GlobalConfig 351 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.pPage = va_arg(ap, void*); sqlite3GlobalConfig 352 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.szPage = va_arg(ap, int); sqlite3GlobalConfig 353 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.nPage = va_arg(ap, int); sqlite3GlobalConfig 359 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.pcache = *va_arg(ap, sqlite3_pcache_methods*); sqlite3GlobalConfig 364 third_party/sqlite/src/src/main.c if( sqlite3GlobalConfig.pcache.xInit==0 ){ sqlite3GlobalConfig 367 third_party/sqlite/src/src/main.c *va_arg(ap, sqlite3_pcache_methods*) = sqlite3GlobalConfig.pcache; sqlite3GlobalConfig 374 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.pHeap = va_arg(ap, void*); sqlite3GlobalConfig 375 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.nHeap = va_arg(ap, int); sqlite3GlobalConfig 376 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.mnReq = va_arg(ap, int); sqlite3GlobalConfig 378 third_party/sqlite/src/src/main.c if( sqlite3GlobalConfig.mnReq<1 ){ sqlite3GlobalConfig 379 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.mnReq = 1; sqlite3GlobalConfig 380 third_party/sqlite/src/src/main.c }else if( sqlite3GlobalConfig.mnReq>(1<<12) ){ sqlite3GlobalConfig 382 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.mnReq = (1<<12); sqlite3GlobalConfig 385 third_party/sqlite/src/src/main.c if( sqlite3GlobalConfig.pHeap==0 ){ sqlite3GlobalConfig 391 third_party/sqlite/src/src/main.c memset(&sqlite3GlobalConfig.m, 0, sizeof(sqlite3GlobalConfig.m)); sqlite3GlobalConfig 398 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.m = *sqlite3MemGetMemsys3(); sqlite3GlobalConfig 401 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.m = *sqlite3MemGetMemsys5(); sqlite3GlobalConfig 409 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.szLookaside = va_arg(ap, int); sqlite3GlobalConfig 410 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.nLookaside = va_arg(ap, int); sqlite3GlobalConfig 424 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.xLog = va_arg(ap, LOGFUNC_t); sqlite3GlobalConfig 425 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.pLogArg = va_arg(ap, void*); sqlite3GlobalConfig 1827 third_party/sqlite/src/src/main.c if( sqlite3GlobalConfig.bCoreMutex==0 ){ sqlite3GlobalConfig 1834 third_party/sqlite/src/src/main.c isThreadsafe = sqlite3GlobalConfig.bFullMutex; sqlite3GlobalConfig 1838 third_party/sqlite/src/src/main.c }else if( sqlite3GlobalConfig.sharedCacheEnabled ){ sqlite3GlobalConfig 2024 third_party/sqlite/src/src/main.c setupLookaside(db, 0, sqlite3GlobalConfig.szLookaside, sqlite3GlobalConfig 2025 third_party/sqlite/src/src/main.c sqlite3GlobalConfig.nLookaside); sqlite3GlobalConfig 2031 third_party/sqlite/src/src/main.c assert( db->mutex!=0 || isThreadsafe==0 || sqlite3GlobalConfig.bFullMutex==0 ); sqlite3GlobalConfig 2237 third_party/sqlite/src/src/main.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 2244 third_party/sqlite/src/src/main.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 2251 third_party/sqlite/src/src/main.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 157 third_party/sqlite/src/src/malloc.c if( sqlite3GlobalConfig.m.xMalloc==0 ){ sqlite3GlobalConfig 161 third_party/sqlite/src/src/malloc.c if( sqlite3GlobalConfig.bCoreMutex ){ sqlite3GlobalConfig 164 third_party/sqlite/src/src/malloc.c if( sqlite3GlobalConfig.pScratch && sqlite3GlobalConfig.szScratch>=100 sqlite3GlobalConfig 165 third_party/sqlite/src/src/malloc.c && sqlite3GlobalConfig.nScratch>0 ){ sqlite3GlobalConfig 168 third_party/sqlite/src/src/malloc.c sz = ROUNDDOWN8(sqlite3GlobalConfig.szScratch); sqlite3GlobalConfig 169 third_party/sqlite/src/src/malloc.c sqlite3GlobalConfig.szScratch = sz; sqlite3GlobalConfig 170 third_party/sqlite/src/src/malloc.c pSlot = (ScratchFreeslot*)sqlite3GlobalConfig.pScratch; sqlite3GlobalConfig 171 third_party/sqlite/src/src/malloc.c n = sqlite3GlobalConfig.nScratch; sqlite3GlobalConfig 182 third_party/sqlite/src/src/malloc.c sqlite3GlobalConfig.pScratch = 0; sqlite3GlobalConfig 183 third_party/sqlite/src/src/malloc.c sqlite3GlobalConfig.szScratch = 0; sqlite3GlobalConfig 184 third_party/sqlite/src/src/malloc.c sqlite3GlobalConfig.nScratch = 0; sqlite3GlobalConfig 186 third_party/sqlite/src/src/malloc.c if( sqlite3GlobalConfig.pPage==0 || sqlite3GlobalConfig.szPage<512 sqlite3GlobalConfig 187 third_party/sqlite/src/src/malloc.c || sqlite3GlobalConfig.nPage<1 ){ sqlite3GlobalConfig 188 third_party/sqlite/src/src/malloc.c sqlite3GlobalConfig.pPage = 0; sqlite3GlobalConfig 189 third_party/sqlite/src/src/malloc.c sqlite3GlobalConfig.szPage = 0; sqlite3GlobalConfig 190 third_party/sqlite/src/src/malloc.c sqlite3GlobalConfig.nPage = 0; sqlite3GlobalConfig 192 third_party/sqlite/src/src/malloc.c return sqlite3GlobalConfig.m.xInit(sqlite3GlobalConfig.m.pAppData); sqlite3GlobalConfig 208 third_party/sqlite/src/src/malloc.c if( sqlite3GlobalConfig.m.xShutdown ){ sqlite3GlobalConfig 209 third_party/sqlite/src/src/malloc.c sqlite3GlobalConfig.m.xShutdown(sqlite3GlobalConfig.m.pAppData); sqlite3GlobalConfig 265 third_party/sqlite/src/src/malloc.c nFull = sqlite3GlobalConfig.m.xRoundup(n); sqlite3GlobalConfig 276 third_party/sqlite/src/src/malloc.c p = sqlite3GlobalConfig.m.xMalloc(nFull); sqlite3GlobalConfig 280 third_party/sqlite/src/src/malloc.c p = sqlite3GlobalConfig.m.xMalloc(nFull); sqlite3GlobalConfig 307 third_party/sqlite/src/src/malloc.c }else if( sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 312 third_party/sqlite/src/src/malloc.c p = sqlite3GlobalConfig.m.xMalloc(n); sqlite3GlobalConfig 354 third_party/sqlite/src/src/malloc.c if( mem0.nScratchFree && sqlite3GlobalConfig.szScratch>=n ){ sqlite3GlobalConfig 362 third_party/sqlite/src/src/malloc.c if( sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 369 third_party/sqlite/src/src/malloc.c p = sqlite3GlobalConfig.m.xMalloc(n); sqlite3GlobalConfig 399 third_party/sqlite/src/src/malloc.c if( p>=sqlite3GlobalConfig.pScratch && p<mem0.pScratchEnd ){ sqlite3GlobalConfig 407 third_party/sqlite/src/src/malloc.c assert( mem0.nScratchFree <= (u32)sqlite3GlobalConfig.nScratch ); sqlite3GlobalConfig 415 third_party/sqlite/src/src/malloc.c if( sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 421 third_party/sqlite/src/src/malloc.c sqlite3GlobalConfig.m.xFree(p); sqlite3GlobalConfig 424 third_party/sqlite/src/src/malloc.c sqlite3GlobalConfig.m.xFree(p); sqlite3GlobalConfig 448 third_party/sqlite/src/src/malloc.c return sqlite3GlobalConfig.m.xSize(p); sqlite3GlobalConfig 458 third_party/sqlite/src/src/malloc.c return sqlite3GlobalConfig.m.xSize(p); sqlite3GlobalConfig 469 third_party/sqlite/src/src/malloc.c if( sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 473 third_party/sqlite/src/src/malloc.c sqlite3GlobalConfig.m.xFree(p); sqlite3GlobalConfig 476 third_party/sqlite/src/src/malloc.c sqlite3GlobalConfig.m.xFree(p); sqlite3GlobalConfig 527 third_party/sqlite/src/src/malloc.c nNew = sqlite3GlobalConfig.m.xRoundup(nBytes); sqlite3GlobalConfig 530 third_party/sqlite/src/src/malloc.c }else if( sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 539 third_party/sqlite/src/src/malloc.c pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); sqlite3GlobalConfig 542 third_party/sqlite/src/src/malloc.c pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); sqlite3GlobalConfig 550 third_party/sqlite/src/src/malloc.c pNew = sqlite3GlobalConfig.m.xRealloc(pOld, nNew); sqlite3GlobalConfig 46 third_party/sqlite/src/src/mem1.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 99 third_party/sqlite/src/src/mem1.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 191 third_party/sqlite/src/src/mem2.c if( !sqlite3GlobalConfig.bMemstat ){ sqlite3GlobalConfig 305 third_party/sqlite/src/src/mem2.c assert( sqlite3GlobalConfig.bMemstat || sqlite3GlobalConfig.bCoreMutex==0 sqlite3GlobalConfig 382 third_party/sqlite/src/src/mem2.c if( p && sqlite3GlobalConfig.m.xMalloc==sqlite3MemMalloc ){ sqlite3GlobalConfig 401 third_party/sqlite/src/src/mem2.c if( p && sqlite3GlobalConfig.m.xMalloc==sqlite3MemMalloc ){ sqlite3GlobalConfig 423 third_party/sqlite/src/src/mem2.c if( p && sqlite3GlobalConfig.m.xMalloc==sqlite3MemMalloc ){ sqlite3GlobalConfig 223 third_party/sqlite/src/src/mem3.c if( sqlite3GlobalConfig.bMemstat==0 && mem3.mutex==0 ){ sqlite3GlobalConfig 554 third_party/sqlite/src/src/mem3.c if( !sqlite3GlobalConfig.pHeap ){ sqlite3GlobalConfig 560 third_party/sqlite/src/src/mem3.c mem3.aPool = (Mem3Block *)sqlite3GlobalConfig.pHeap; sqlite3GlobalConfig 561 third_party/sqlite/src/src/mem3.c mem3.nPool = (sqlite3GlobalConfig.nHeap / sizeof(Mem3Block)) - 2; sqlite3GlobalConfig 272 third_party/sqlite/src/src/mem5.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 472 third_party/sqlite/src/src/mem5.c nByte = sqlite3GlobalConfig.nHeap; sqlite3GlobalConfig 473 third_party/sqlite/src/src/mem5.c zByte = (u8*)sqlite3GlobalConfig.pHeap; sqlite3GlobalConfig 477 third_party/sqlite/src/src/mem5.c nMinLog = memsys5Log(sqlite3GlobalConfig.mnReq); sqlite3GlobalConfig 503 third_party/sqlite/src/src/mem5.c if( sqlite3GlobalConfig.bMemstat==0 ){ sqlite3GlobalConfig 34 third_party/sqlite/src/src/mutex.c if( !sqlite3GlobalConfig.mutex.xMutexAlloc ){ sqlite3GlobalConfig 41 third_party/sqlite/src/src/mutex.c sqlite3_mutex_methods *pTo = &sqlite3GlobalConfig.mutex; sqlite3GlobalConfig 43 third_party/sqlite/src/src/mutex.c if( sqlite3GlobalConfig.bCoreMutex ){ sqlite3GlobalConfig 53 third_party/sqlite/src/src/mutex.c rc = sqlite3GlobalConfig.mutex.xMutexInit(); sqlite3GlobalConfig 68 third_party/sqlite/src/src/mutex.c if( sqlite3GlobalConfig.mutex.xMutexEnd ){ sqlite3GlobalConfig 69 third_party/sqlite/src/src/mutex.c rc = sqlite3GlobalConfig.mutex.xMutexEnd(); sqlite3GlobalConfig 86 third_party/sqlite/src/src/mutex.c return sqlite3GlobalConfig.mutex.xMutexAlloc(id); sqlite3GlobalConfig 90 third_party/sqlite/src/src/mutex.c if( !sqlite3GlobalConfig.bCoreMutex ){ sqlite3GlobalConfig 94 third_party/sqlite/src/src/mutex.c return sqlite3GlobalConfig.mutex.xMutexAlloc(id); sqlite3GlobalConfig 102 third_party/sqlite/src/src/mutex.c sqlite3GlobalConfig.mutex.xMutexFree(p); sqlite3GlobalConfig 112 third_party/sqlite/src/src/mutex.c sqlite3GlobalConfig.mutex.xMutexEnter(p); sqlite3GlobalConfig 123 third_party/sqlite/src/src/mutex.c return sqlite3GlobalConfig.mutex.xMutexTry(p); sqlite3GlobalConfig 136 third_party/sqlite/src/src/mutex.c sqlite3GlobalConfig.mutex.xMutexLeave(p); sqlite3GlobalConfig 146 third_party/sqlite/src/src/mutex.c return p==0 || sqlite3GlobalConfig.mutex.xMutexHeld(p); sqlite3GlobalConfig 149 third_party/sqlite/src/src/mutex.c return p==0 || sqlite3GlobalConfig.mutex.xMutexNotheld(p); sqlite3GlobalConfig 134 third_party/sqlite/src/src/pcache.c sqlite3GlobalConfig.pcache.xUnpin(pCache->pCache, p, 0); sqlite3GlobalConfig 144 third_party/sqlite/src/src/pcache.c if( sqlite3GlobalConfig.pcache.xInit==0 ){ sqlite3GlobalConfig 150 third_party/sqlite/src/src/pcache.c return sqlite3GlobalConfig.pcache.xInit(sqlite3GlobalConfig.pcache.pArg); sqlite3GlobalConfig 153 third_party/sqlite/src/src/pcache.c if( sqlite3GlobalConfig.pcache.xShutdown ){ sqlite3GlobalConfig 155 third_party/sqlite/src/src/pcache.c sqlite3GlobalConfig.pcache.xShutdown(sqlite3GlobalConfig.pcache.pArg); sqlite3GlobalConfig 194 third_party/sqlite/src/src/pcache.c sqlite3GlobalConfig.pcache.xDestroy(pCache->pCache); sqlite3GlobalConfig 224 third_party/sqlite/src/src/pcache.c p = sqlite3GlobalConfig.pcache.xCreate(nByte, pCache->bPurgeable); sqlite3GlobalConfig 228 third_party/sqlite/src/src/pcache.c sqlite3GlobalConfig.pcache.xCachesize(p, pCache->nMax); sqlite3GlobalConfig 234 third_party/sqlite/src/src/pcache.c pPage = sqlite3GlobalConfig.pcache.xFetch(pCache->pCache, pgno, eCreate); sqlite3GlobalConfig 262 third_party/sqlite/src/src/pcache.c pPage = sqlite3GlobalConfig.pcache.xFetch(pCache->pCache, pgno, 2); sqlite3GlobalConfig 335 third_party/sqlite/src/src/pcache.c sqlite3GlobalConfig.pcache.xUnpin(pCache->pCache, p, 1); sqlite3GlobalConfig 393 third_party/sqlite/src/src/pcache.c sqlite3GlobalConfig.pcache.xRekey(pCache->pCache, p, p->pgno, newPgno); sqlite3GlobalConfig 430 third_party/sqlite/src/src/pcache.c sqlite3GlobalConfig.pcache.xTruncate(pCache->pCache, pgno+1); sqlite3GlobalConfig 439 third_party/sqlite/src/src/pcache.c sqlite3GlobalConfig.pcache.xDestroy(pCache->pCache); sqlite3GlobalConfig 551 third_party/sqlite/src/src/pcache.c nPage = sqlite3GlobalConfig.pcache.xPagecount(pCache->pCache); sqlite3GlobalConfig 571 third_party/sqlite/src/src/pcache.c sqlite3GlobalConfig.pcache.xCachesize(pCache->pCache, mxPage); sqlite3GlobalConfig 521 third_party/sqlite/src/src/pcache1.c if( sqlite3GlobalConfig.bCoreMutex ){ sqlite3GlobalConfig 570 third_party/sqlite/src/src/pcache1.c int separateCache = sqlite3GlobalConfig.bCoreMutex>0; sqlite3GlobalConfig 982 third_party/sqlite/src/src/printf.c sqlite3GlobalConfig.xLog(sqlite3GlobalConfig.pLogArg, iErrCode, sqlite3GlobalConfig 991 third_party/sqlite/src/src/printf.c if( sqlite3GlobalConfig.xLog ){ sqlite3GlobalConfig 173 third_party/sqlite/src/src/status.c nByte += sqlite3GlobalConfig.m.xRoundup(sizeof(HashElem)) * ( sqlite3GlobalConfig 1480 third_party/sqlite/src/src/test1.c ret = sqlite3GlobalConfig.sharedCacheEnabled; sqlite3GlobalConfig 1047 third_party/sqlite/src/src/test_malloc.c interp, pRet, Tcl_NewIntObj(sqlite3GlobalConfig.szLookaside) sqlite3GlobalConfig 1050 third_party/sqlite/src/src/test_malloc.c interp, pRet, Tcl_NewIntObj(sqlite3GlobalConfig.nLookaside) sqlite3GlobalConfig 1062 third_party/sqlite/src/src/util.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 1076 third_party/sqlite/src/src/util.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 855 third_party/sqlite/src/src/vdbe.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 858 third_party/sqlite/src/src/vdbe.c testcase( sqlite3GlobalConfig.xLog!=0 ); sqlite3GlobalConfig 5930 third_party/sqlite/src/src/vdbe.c testcase( sqlite3GlobalConfig.xLog!=0 );