| 139 | } |
| 140 | |
| 141 | void FluxEngineApp::OnExec(const ExecEvent& event) |
| 142 | { |
| 143 | try |
| 144 | { |
| 145 | event.RunCallback(); |
| 146 | if (event.IsSynchronous()) |
| 147 | execSemaphore.Post(); |
| 148 | } |
| 149 | catch (std::exception& e) |
| 150 | { |
| 151 | std::cerr << "Unhandled exception: " << e.what() << "\n"; |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | void runOnUiThread(std::function<void()> callback) |
| 156 | { |
nothing calls this directly
no test coverage detected