MCPcopy Create free account
hub / github.com/Snapchat/Valdi / doDestroyContext

Method doDestroyContext

valdi/src/valdi/runtime/Runtime.cpp:330–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328 } else {
329 _mainThreadManager->dispatch(context, [=]() { strongRef->doDestroyContext(context); });
330 }
331}
332
333void Runtime::doDestroyContext(const SharedContext& context) {
334 ScopedMetrics metrics =
335 Metrics::scopedDestroyContextLatency(getMetrics(), context->getPath().getResourceId().bundleName);
336
337 _contextManager.destroyContext(context);
338 auto viewNodeTree = _viewNodeManager.getViewNodeTreeForContextId(context->getContextId());
339 if (viewNodeTree != nullptr) {
340 destroyViewNodeTree(*viewNodeTree);
341 }
342}

Callers 1

destroyContextMethod · 0.80

Calls 4

destroyContextMethod · 0.65
getPathMethod · 0.45
getContextIdMethod · 0.45

Tested by

no test coverage detected