Lines Matching refs:g
54 } g = {0}; variable
58 return g.m.xMutexHeld(p->pReal); in counterMutexHeld()
63 return g.m.xMutexNotheld(p->pReal); in counterMutexNotheld()
73 if( g.disableInit ) return g.disableInit; in counterMutexInit()
74 rc = g.m.xMutexInit(); in counterMutexInit()
75 g.isInit = 1; in counterMutexInit()
83 g.isInit = 0; in counterMutexEnd()
84 return g.m.xMutexEnd(); in counterMutexEnd()
94 assert( g.isInit ); in counterMutexAlloc()
98 pReal = g.m.xMutexAlloc(eType); in counterMutexAlloc()
107 pRet = &g.aStatic[eStaticType]; in counterMutexAlloc()
119 assert( g.isInit ); in counterMutexFree()
120 g.m.xMutexFree(p->pReal); in counterMutexFree()
130 assert( g.isInit ); in counterMutexEnter()
133 g.aCounter[p->eType]++; in counterMutexEnter()
134 g.m.xMutexEnter(p->pReal); in counterMutexEnter()
141 assert( g.isInit ); in counterMutexTry()
144 g.aCounter[p->eType]++; in counterMutexTry()
145 if( g.disableTry ) return SQLITE_BUSY; in counterMutexTry()
146 return g.m.xMutexTry(p->pReal); in counterMutexTry()
152 assert( g.isInit ); in counterMutexLeave()
153 g.m.xMutexLeave(p->pReal); in counterMutexLeave()
231 assert(g.isInstalled==0 || g.isInstalled==1); in test_install_mutex_counters()
232 if( isInstall==g.isInstalled ){ in test_install_mutex_counters()
239 assert( g.m.xMutexAlloc==0 ); in test_install_mutex_counters()
240 rc = sqlite3_config(SQLITE_CONFIG_GETMUTEX, &g.m); in test_install_mutex_counters()
244 g.disableTry = 0; in test_install_mutex_counters()
246 assert( g.m.xMutexAlloc ); in test_install_mutex_counters()
247 rc = sqlite3_config(SQLITE_CONFIG_MUTEX, &g.m); in test_install_mutex_counters()
248 memset(&g.m, 0, sizeof(sqlite3_mutex_methods)); in test_install_mutex_counters()
252 g.isInstalled = isInstall; in test_install_mutex_counters()
280 Tcl_ListObjAppendElement(interp, pRet, Tcl_NewIntObj(g.aCounter[ii])); in test_read_mutex_counters()
305 g.aCounter[ii] = 0; in test_clear_mutex_counters()
506 (char*)&g.disableInit, TCL_LINK_INT); in Sqlitetest_mutex_Init()
508 (char*)&g.disableTry, TCL_LINK_INT); in Sqlitetest_mutex_Init()