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

Method fullTeardown

valdi/src/valdi/runtime/RuntimeManager.cpp:152–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150 registerModuleFactoriesProvider(ModuleFactoryRegistry::sharedInstance());
151}
152
153void RuntimeManager::fullTeardown() {
154 if (_anrDetector != nullptr) {
155 _anrDetector->stop();
156 _anrDetector = nullptr;
157 }
158 stopDebuggerServices();
159 std::vector<SharedRuntime> allRuntimes;
160 {
161 std::lock_guard<Mutex> lock(_mutex);
162 allRuntimes = getAllRuntimes(lock);
163 _runtimes.clear();
164 }
165 for (const auto& runtime : allRuntimes) {
166 runtime->fullTeardown();
167 }
168 _mainThreadManager->clearAndTeardown();
169 _workerQueue->flushAndTeardown();
170 _debuggerService = nullptr;
171}
172
173SharedRuntime RuntimeManager::createRuntime(const Shared<IResourceLoader>& resourceLoader,

Callers

nothing calls this directly

Calls 4

clearAndTeardownMethod · 0.80
flushAndTeardownMethod · 0.80
stopMethod · 0.65
clearMethod · 0.65

Tested by

no test coverage detected