| 41 | MainThreadManager::~MainThreadManager() = default; |
| 42 | |
| 43 | void MainThreadManager::postInit() { |
| 44 | _mainThreadDispatcher->dispatch( |
| 45 | new DispatchFunction([self = strongSmallRef(this)]() { self->markCurrentThreadIsMainThread(); }), false); |
| 46 | } |
| 47 | |
| 48 | bool MainThreadManager::shouldAllowBatchFromCurrentThread() { |
| 49 | return MainThreadBatchAllowScope::isAllowed(); |
nothing calls this directly
no test coverage detected