| 54 | } |
| 55 | |
| 56 | void MainThreadManager::dispatchSync(const Ref<Context>& context, DispatchFunction function) { |
| 57 | doDispatch(context, std::move(function), true); |
| 58 | } |
| 59 | |
| 60 | void MainThreadManager::doDispatch(const Ref<Context>& context, DispatchFunction&& function, bool sync) { |
| 61 | if (_tornDown) { |