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

Function TSContThreadAffinity_test

tests/tools/plugins/cont_schedule.cc:88–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void
89TSContThreadAffinity_test()
90{
91 TSCont contp = TSContCreate(TSContThreadAffinity_handler, TSMutexCreate());
92
93 if (contp == nullptr) {
94 Dbg(dbg_ctl_schd, "[%s] could not create continuation", plugin_name);
95 abort();
96 } else {
97 Dbg(dbg_ctl_schd, "[%s] scheduling continuation", plugin_name);
98 TSContScheduleOnPool(contp, 0, TS_THREAD_POOL_NET);
99 }
100}
101
102static int
103TSContScheduleOnPool_handler_1(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
TSContScheduleOnPoolFunction · 0.85

Tested by

no test coverage detected