MCPcopy Create free account
hub / github.com/apache/trafficserver / systemStatsContCB

Function systemStatsContCB

plugins/experimental/system_stats/system_stats.cc:298–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298static int
299systemStatsContCB(TSCont cont, TSEvent /* event ATS_UNUSED */, void * /* edata ATS_UNUSED */)
300{
301 TSMutex stat_creation_mutex;
302
303 Dbg(dbg_ctl, "entered %s", __FUNCTION__);
304
305 stat_creation_mutex = TSContMutexGet(cont);
306 getStats(stat_creation_mutex);
307
308 TSContScheduleOnPool(cont, SYSTEM_STATS_TIMEOUT, TS_THREAD_POOL_TASK);
309 Dbg(dbg_ctl, "finished %s", __FUNCTION__);
310
311 return 0;
312}
313
314void
315TSPluginInit(int /* arg ATS_UNUSED */, const char ** /* argv ATS_UNUSED */)

Callers

nothing calls this directly

Calls 3

TSContMutexGetFunction · 0.85
getStatsFunction · 0.85
TSContScheduleOnPoolFunction · 0.85

Tested by

no test coverage detected