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

Function TSContScheduleEveryOnPool_test

tests/tools/plugins/cont_schedule.cc:259–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259void
260TSContScheduleEveryOnPool_test()
261{
262 TSCont contp = TSContCreate(TSContScheduleEveryOnPool_handler, TSMutexCreate());
263
264 if (contp == nullptr) {
265 Dbg(dbg_ctl_schd, "[%s] could not create continuation", plugin_name);
266 abort();
267 } else {
268 Dbg(dbg_ctl_schd, "[%s] scheduling continuation", plugin_name);
269 TSContScheduleEveryOnPool(contp, 900, TS_THREAD_POOL_NET);
270 }
271}
272
273static int
274TSContScheduleEveryOnThread_handler(TSCont /* contp ATS_UNUSED */, TSEvent /* event ATS_UNUSED */, void * /* edata ATS_UNUSED */)

Callers 1

LifecycleHookTracerFunction · 0.85

Calls 4

TSContCreateFunction · 0.85
TSMutexCreateFunction · 0.85
abortFunction · 0.85

Tested by

no test coverage detected