Home
last modified time | relevance | path

Searched refs:sqlite3GlobalConfig (Results 1 – 25 of 27) sorted by relevance

12

/sqlite-3.40.0/src/
H A Dmutex.c221 if( !sqlite3GlobalConfig.mutex.xMutexAlloc ){ in sqlite3MutexInit()
230 if( sqlite3GlobalConfig.bCoreMutex ){ in sqlite3MutexInit()
250 assert( sqlite3GlobalConfig.mutex.xMutexInit ); in sqlite3MutexInit()
251 rc = sqlite3GlobalConfig.mutex.xMutexInit(); in sqlite3MutexInit()
267 if( sqlite3GlobalConfig.mutex.xMutexEnd ){ in sqlite3MutexEnd()
268 rc = sqlite3GlobalConfig.mutex.xMutexEnd(); in sqlite3MutexEnd()
286 assert( sqlite3GlobalConfig.mutex.xMutexAlloc ); in sqlite3_mutex_alloc()
291 if( !sqlite3GlobalConfig.bCoreMutex ){ in sqlite3MutexAlloc()
305 sqlite3GlobalConfig.mutex.xMutexFree(p); in sqlite3_mutex_free()
316 sqlite3GlobalConfig.mutex.xMutexEnter(p); in sqlite3_mutex_enter()
[all …]
H A Dmain.c224 if( sqlite3GlobalConfig.isInit ){ in sqlite3_initialize()
248 sqlite3GlobalConfig.isMutexInit = 1; in sqlite3_initialize()
255 sqlite3GlobalConfig.pInitMutex = in sqlite3_initialize()
257 if( sqlite3GlobalConfig.bCoreMutex && !sqlite3GlobalConfig.pInitMutex ){ in sqlite3_initialize()
288 if( sqlite3GlobalConfig.isInit==0 && sqlite3GlobalConfig.inProgress==0 ){ in sqlite3_initialize()
312 sqlite3GlobalConfig.szPage, sqlite3GlobalConfig.nPage); in sqlite3_initialize()
314 sqlite3GlobalConfig.isInit = 1; in sqlite3_initialize()
383 if( sqlite3GlobalConfig.isInit ){ in sqlite3_shutdown()
390 sqlite3GlobalConfig.isInit = 0; in sqlite3_shutdown()
595 memset(&sqlite3GlobalConfig.m, 0, sizeof(sqlite3GlobalConfig.m)); in sqlite3_config()
[all …]
H A Dmalloc.c161 if( sqlite3GlobalConfig.m.xMalloc==0 ){ in sqlite3MallocInit()
165 if( sqlite3GlobalConfig.pPage==0 || sqlite3GlobalConfig.szPage<512 in sqlite3MallocInit()
166 || sqlite3GlobalConfig.nPage<=0 ){ in sqlite3MallocInit()
167 sqlite3GlobalConfig.pPage = 0; in sqlite3MallocInit()
168 sqlite3GlobalConfig.szPage = 0; in sqlite3MallocInit()
170 rc = sqlite3GlobalConfig.m.xInit(sqlite3GlobalConfig.m.pAppData); in sqlite3MallocInit()
188 if( sqlite3GlobalConfig.m.xShutdown ){ in sqlite3MallocEnd()
189 sqlite3GlobalConfig.m.xShutdown(sqlite3GlobalConfig.m.pAppData); in sqlite3MallocEnd()
397 if( sqlite3GlobalConfig.bMemstat ){ in sqlite3_free()
401 sqlite3GlobalConfig.m.xFree(p); in sqlite3_free()
[all …]
H A Dpcache.c287 if( sqlite3GlobalConfig.pcache2.xInit==0 ){ in sqlite3PcacheInitialize()
292 assert( sqlite3GlobalConfig.pcache2.xInit!=0 ); in sqlite3PcacheInitialize()
294 return sqlite3GlobalConfig.pcache2.xInit(sqlite3GlobalConfig.pcache2.pArg); in sqlite3PcacheInitialize()
297 if( sqlite3GlobalConfig.pcache2.xShutdown ){ in sqlite3PcacheShutdown()
299 sqlite3GlobalConfig.pcache2.xShutdown(sqlite3GlobalConfig.pcache2.pArg); in sqlite3PcacheShutdown()
350 pNew = sqlite3GlobalConfig.pcache2.xCreate( in sqlite3PcacheSetPageSize()
357 sqlite3GlobalConfig.pcache2.xDestroy(pCache->pCache); in sqlite3PcacheSetPageSize()
718 sqlite3GlobalConfig.pcache2.xDestroy(pCache->pCache); in sqlite3PcacheClose()
834 return sqlite3GlobalConfig.pcache2.xPagecount(pCache->pCache); in sqlite3PcachePagecount()
852 sqlite3GlobalConfig.pcache2.xCachesize(pCache->pCache, in sqlite3PcacheSetCachesize()
[all …]
H A Dmem1.c134 testcase( sqlite3GlobalConfig.xLog!=0 ); in sqlite3MemMalloc()
147 testcase( sqlite3GlobalConfig.xLog!=0 ); in sqlite3MemMalloc()
204 testcase( sqlite3GlobalConfig.xLog!=0 ); in sqlite3MemRealloc()
220 testcase( sqlite3GlobalConfig.xLog!=0 ); in sqlite3MemRealloc()
H A Dmem2.c191 if( !sqlite3GlobalConfig.bMemstat ){ in sqlite3MemInit()
305 assert( sqlite3GlobalConfig.bMemstat || sqlite3GlobalConfig.bCoreMutex==0 in sqlite3MemFree()
382 if( p && sqlite3GlobalConfig.m.xFree==sqlite3MemFree ){ in sqlite3MemdebugSetType()
401 if( p && sqlite3GlobalConfig.m.xFree==sqlite3MemFree ){ in sqlite3MemdebugHasType()
423 if( p && sqlite3GlobalConfig.m.xFree==sqlite3MemFree ){ in sqlite3MemdebugNoType()
H A Dmem5.c250 testcase( sqlite3GlobalConfig.xLog!=0 ); in memsys5MallocUnsafe()
472 nByte = sqlite3GlobalConfig.nHeap; in memsys5Init()
473 zByte = (u8*)sqlite3GlobalConfig.pHeap; in memsys5Init()
477 nMinLog = memsys5Log(sqlite3GlobalConfig.mnReq); in memsys5Init()
503 if( sqlite3GlobalConfig.bMemstat==0 ){ in memsys5Init()
H A Dpcache1.c720 pcache1.separateCache = sqlite3GlobalConfig.pPage==0 in pcache1Init()
721 || sqlite3GlobalConfig.bCoreMutex>0; in pcache1Init()
723 pcache1.separateCache = sqlite3GlobalConfig.pPage==0; in pcache1Init()
727 if( sqlite3GlobalConfig.bCoreMutex ){ in pcache1Init()
733 && sqlite3GlobalConfig.nPage!=0 in pcache1Init()
734 && sqlite3GlobalConfig.pPage==0 in pcache1Init()
736 pcache1.nInitPage = sqlite3GlobalConfig.nPage; in pcache1Init()
1240 if( sqlite3GlobalConfig.pPage==0 ){ in sqlite3PcacheReleaseMemory()
H A Ddate.c525 if( sqlite3GlobalConfig.bLocaltimeFault ){ in osLocaltime()
526 if( sqlite3GlobalConfig.xAltLocaltime!=0 in osLocaltime()
527 && 0==sqlite3GlobalConfig.xAltLocaltime((const void*)t,(void*)pTm) in osLocaltime()
542 if( sqlite3GlobalConfig.bLocaltimeFault ){ in osLocaltime()
543 if( sqlite3GlobalConfig.xAltLocaltime!=0 ){ in osLocaltime()
544 return sqlite3GlobalConfig.xAltLocaltime((const void*)t,(void*)pTm); in osLocaltime()
H A Dmem3.c223 if( sqlite3GlobalConfig.bMemstat==0 && mem3.mutex==0 ){ in memsys3Enter()
554 if( !sqlite3GlobalConfig.pHeap ){ in memsys3Init()
560 mem3.aPool = (Mem3Block *)sqlite3GlobalConfig.pHeap; in memsys3Init()
561 mem3.nPool = (sqlite3GlobalConfig.nHeap / sizeof(Mem3Block)) - 2; in memsys3Init()
H A Dthreads.c62 assert( sqlite3GlobalConfig.bCoreMutex!=0 ); in sqlite3ThreadCreate()
163 if( sqlite3GlobalConfig.bCoreMutex==0 || sqlite3FaultSim(200) ){ in sqlite3ThreadCreate()
H A Dmemdb.c543 p->szMax = sqlite3GlobalConfig.mxMemdbSize; in memdbOpen()
567 p->szMax = sqlite3GlobalConfig.mxMemdbSize; in memdbOpen()
844 if( pStore->szMax<sqlite3GlobalConfig.mxMemdbSize ){ in sqlite3_deserialize()
845 pStore->szMax = sqlite3GlobalConfig.mxMemdbSize; in sqlite3_deserialize()
H A Dtest_malloc.c905 Tcl_ListObjAppendElement(0, pRes, Tcl_NewIntObj(sqlite3GlobalConfig.szPage)); in test_config_pagecache()
906 Tcl_ListObjAppendElement(0, pRes, Tcl_NewIntObj(sqlite3GlobalConfig.nPage)); in test_config_pagecache()
1006 interp, pRet, Tcl_NewIntObj(sqlite3GlobalConfig.szLookaside) in test_config_lookaside()
1009 interp, pRet, Tcl_NewIntObj(sqlite3GlobalConfig.nLookaside) in test_config_lookaside()
H A Dprintf.c1336 sqlite3GlobalConfig.xLog(sqlite3GlobalConfig.pLogArg, iErrCode, in renderLogMsg()
1345 if( sqlite3GlobalConfig.xLog ){ in sqlite3_log()
H A Dutil.c45 int (*xCallback)(int) = sqlite3GlobalConfig.xTestCallback; in sqlite3FaultSim()
1408 testcase( sqlite3GlobalConfig.xLog!=0 ); in sqlite3SafetyCheckOk()
1422 testcase( sqlite3GlobalConfig.xLog!=0 ); in sqlite3SafetyCheckSickOrOk()
H A Dstatus.c301 nByte += sqlite3GlobalConfig.m.xRoundup(sizeof(HashElem)) * ( in sqlite3_db_status()
H A Dvdbesort.c948 if( sqlite3TempInMemory(db) || sqlite3GlobalConfig.bCoreMutex==0 ){ in sqlite3VdbeSorterInit()
995 u32 szPma = sqlite3GlobalConfig.szPma; in sqlite3VdbeSorterInit()
1011 if( sqlite3GlobalConfig.bSmallMalloc==0 ){ in sqlite3VdbeSorterInit()
H A Dos_win.c1582 DWORD dwMaximumSize = (DWORD)sqlite3GlobalConfig.nHeap; in winMemInit()
3615 if( newLimit>sqlite3GlobalConfig.mxMmap ){
3616 newLimit = sqlite3GlobalConfig.mxMmap;
3967 if( sqlite3GlobalConfig.bCoreMutex ){
5317 pFile->mmapSizeMax = sqlite3GlobalConfig.szMmap;
H A Dos_unix.c1430 if( sqlite3GlobalConfig.bCoreMutex ){ in findInodeInfo()
4034 if( newLimit>sqlite3GlobalConfig.mxMmap ){ in unixFileControl()
4035 newLimit = sqlite3GlobalConfig.mxMmap; in unixFileControl()
4648 if( sqlite3GlobalConfig.bCoreMutex ){ in unixOpenSharedMemory()
5657 pNew->mmapSizeMax = sqlite3GlobalConfig.szMmap; in fillInUnixFile()
H A Dtest1.c1541 ret = sqlite3GlobalConfig.sharedCacheEnabled; in test_enable_shared()
7823 if( sqlite3GlobalConfig.pHeap==0 ){ in sorter_test_fakeheap()
7824 sqlite3GlobalConfig.pHeap = SQLITE_INT_TO_PTR(-1); in sorter_test_fakeheap()
7827 if( sqlite3GlobalConfig.pHeap==SQLITE_INT_TO_PTR(-1) ){ in sorter_test_fakeheap()
7828 sqlite3GlobalConfig.pHeap = 0; in sorter_test_fakeheap()
H A Dvdbe.c194 if( sqlite3GlobalConfig.xVdbeBranch==0 ) return; /*NO_TEST*/ in vdbeTakeBranch()
213 sqlite3GlobalConfig.xVdbeBranch(sqlite3GlobalConfig.pVdbeBranchArg, in vdbeTakeBranch()
8614 if( pOp->p1>=sqlite3GlobalConfig.iOnceResetThreshold ){ in sqlite3VdbeExec()
8803 testcase( sqlite3GlobalConfig.xLog!=0 ); in sqlite3VdbeExec()
H A Dvdbeaux.c3392 if( sqlite3GlobalConfig.xSqllog && v->rc==SQLITE_OK && v->zSql && v->pc>=0 ){ in vdbeInvokeSqllog()
3396 sqlite3GlobalConfig.xSqllog( in vdbeInvokeSqllog()
3397 sqlite3GlobalConfig.pSqllogArg, v->db, zExpanded, 1 in vdbeInvokeSqllog()
H A DsqliteInt.h1142 #define sqlite3GlobalConfig GLOBAL(struct Sqlite3Config, sqlite3Config) macro
1148 #define sqlite3GlobalConfig sqlite3Config macro
H A Dbuild.c1583 if( 4>=sqlite3GlobalConfig.szSorterRef ){ in sqlite3AddColumn()
1710 if( v>=sqlite3GlobalConfig.szSorterRef ){ in sqlite3AffinityType()
H A Dpragma.c914 if( sz<0 ) sz = sqlite3GlobalConfig.szMmap; in sqlite3Pragma()

12