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

Method scheduleFlush

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

Source from the content-addressed store, hash-verified

88}
89
90void MainThreadManager::scheduleFlush(size_t flushId, bool sync) {
91 auto dispatchFn =
92 new DispatchFunction([self = strongSmallRef(this), flushId]() { self->flushTasksWithId(flushId); });
93 _mainThreadDispatcher->dispatch(dispatchFn, sync);
94}
95
96bool MainThreadManager::runNextTask() {
97 std::unique_lock<std::mutex> lock(_mutex);

Callers

nothing calls this directly

Calls 3

flushTasksWithIdMethod · 0.95
strongSmallRefFunction · 0.85
dispatchMethod · 0.45

Tested by

no test coverage detected