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

Function TSContCreate

src/api/InkAPI.cc:3322–3338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3320////////////////////////////////////////////////////////////////////
3321
3322TSCont
3323TSContCreate(TSEventFunc funcp, TSMutex mutexp)
3324{
3325 // mutexp can be null
3326 if (mutexp != nullptr) {
3327 sdk_assert(sdk_sanity_check_mutex(mutexp) == TS_SUCCESS);
3328 }
3329
3330 if (pluginThreadContext) {
3331 pluginThreadContext->acquire();
3332 }
3333
3334 INKContInternal *i = THREAD_ALLOC(INKContAllocator, this_thread());
3335
3336 i->init(funcp, mutexp, pluginThreadContext);
3337 return reinterpret_cast<TSCont>(i);
3338}
3339
3340void
3341TSContDestroy(TSCont contp)

Callers 15

TSPluginInitFunction · 0.85
InterceptContCreateFunction · 0.85
TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85
TxnSMCreateFunction · 0.85
protocol_initFunction · 0.85
TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85

Calls 4

sdk_sanity_check_mutexFunction · 0.85
this_threadFunction · 0.85
acquireMethod · 0.45
initMethod · 0.45