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

Method clearAndTeardown

valdi/src/valdi/runtime/Utils/MainThreadManager.cpp:129–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void MainThreadManager::clearAndTeardown() {
130 if (!_tornDown) {
131 _tornDown = true;
132 std::lock_guard<std::mutex> lockGuard(_mutex);
133 _pendingTasks.clear();
134 }
135}
136
137void MainThreadManager::flushTasksWithId(size_t flushId) {
138 while (runNextTaskWithId(flushId)) {

Callers 1

fullTeardownMethod · 0.80

Calls 1

clearMethod · 0.65

Tested by

no test coverage detected