MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / QueueUITaskLambda

Function QueueUITaskLambda

plugins/base/macro-action-source.cpp:188–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188template<typename F> void QueueUITaskLambda(F &&func)
189{
190 using FnType = std::decay_t<F>;
191 auto *heapFunc = new FnType(std::forward<F>(func));
192
193 QueueUITask(
194 [](void *param) {
195 std::unique_ptr<FnType> fn(
196 static_cast<FnType *>(param));
197 (*fn)();
198 },
199 heapFunc);
200}
201
202bool MacroActionSource::PerformAction()
203{

Callers 1

PerformActionMethod · 0.85

Calls 1

QueueUITaskFunction · 0.50

Tested by

no test coverage detected