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

Method postInit

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

strongSmallRefFunction · 0.85
dispatchMethod · 0.45

Tested by

no test coverage detected