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

Method flushLoadOperations

valdi/src/valdi/runtime/RuntimeManager.cpp:716–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

714}
715
716void RuntimeManager::flushLoadOperations() {
717 std::unique_lock<Mutex> guard(_mutex);
718
719 while (_loadOperationsCount != 0) {
720 guard.unlock();
721 // Flush worker queue and try again
722 _workerQueue->sync([]() {});
723 guard.lock();
724 }
725}
726
727JavaScriptContextMemoryStatistics RuntimeManager::dumpMemoryStatistics() {
728 const auto runtimes = this->getAllRuntimes();

Callers

nothing calls this directly

Calls 3

unlockMethod · 0.45
syncMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected