| 186 | } |
| 187 | |
| 188 | template<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 | |
| 202 | bool MacroActionSource::PerformAction() |
| 203 | { |
no test coverage detected