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

Method getContext

plugins/experimental/wasm/lib/src/null/null_plugin.cc:309–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309null_plugin::Context *NullPlugin::getContext(uint64_t context_id) {
310 auto it = context_map_.find(context_id);
311 if (it == context_map_.end() || (it->second->asContext() == nullptr)) {
312 error("no context context_id: " + std::to_string(context_id));
313 return nullptr;
314 }
315 return it->second->asContext();
316}
317
318null_plugin::RootContext *NullPlugin::getRootContext(uint64_t context_id) {
319 auto it = context_map_.find(context_id);

Callers 5

ContextMethod · 0.45
set_effective_contextFunction · 0.45
enqueueMethod · 0.45
nullVmGetContextFunction · 0.45

Calls 4

errorFunction · 0.85
to_stringClass · 0.50
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected