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

Method getRoot

valdi/src/valdi/runtime/Context/Context.cpp:418–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418Context* Context::getRoot() {
419 auto* current = this;
420 while (current != nullptr && current->getParent() != nullptr) {
421 current = current->getParent().get();
422 }
423
424 return current;
425}
426
427std::unique_lock<Mutex> Context::lock() const {
428 return std::unique_lock<Mutex>(_mutex);

Callers 4

doOnCreateMethod · 0.45
deassociateContextMethod · 0.45
runtimeCreateContextMethod · 0.45
snapshotViewMethod · 0.45

Calls 2

getParentMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected