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

Function LifecycleHookTracer

tests/tools/plugins/fatal_shutdown.cc:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42static int
43LifecycleHookTracer(TSCont /* contp ATS_UNUSED */, TSEvent event, void * /* edata ATS_UNUSED */)
44{
45 if (event == TS_EVENT_LIFECYCLE_TASK_THREADS_READY) {
46 TSCont contp = TSContCreate(test_handler, TSMutexCreate());
47 TSContScheduleOnPool(contp, 500, TS_THREAD_POOL_NET);
48 TSFatal("testing fatal shutdown");
49 }
50 return 0;
51}
52
53void
54TSPluginInit(int /* argc ATS_UNUSED */, const char ** /* argv ATS_UNUSED */)

Callers

nothing calls this directly

Calls 4

TSContCreateFunction · 0.85
TSMutexCreateFunction · 0.85
TSContScheduleOnPoolFunction · 0.85
TSFatalFunction · 0.85

Tested by

no test coverage detected