| 150 | registerModuleFactoriesProvider(ModuleFactoryRegistry::sharedInstance()); |
| 151 | } |
| 152 | |
| 153 | void 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 | |
| 173 | SharedRuntime RuntimeManager::createRuntime(const Shared<IResourceLoader>& resourceLoader, |
nothing calls this directly
no test coverage detected