| 88 | } |
| 89 | |
| 90 | void 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 | |
| 96 | bool MainThreadManager::runNextTask() { |
| 97 | std::unique_lock<std::mutex> lock(_mutex); |
nothing calls this directly
no test coverage detected