MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / Entry

Method Entry

src/gui/main.cc:71–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71wxThread::ExitCode FluxEngineApp::Entry()
72{
73 try
74 {
75 if (_callback)
76 _callback();
77 }
78 catch (const ErrorException& e)
79 {
80 log(ErrorLogMessage{e.message + '\n'});
81 }
82 catch (const EmergencyStopException& e)
83 {
84 log(EmergencyStopMessage());
85 }
86
87 postToUiThread(
88 [&]
89 {
90 GetThread()->Wait();
91
92 _callback = nullptr;
93 SendUpdateEvent();
94 });
95 return 0;
96}
97
98void FluxEngineApp::RunOnWorkerThread(std::function<void()> callback)
99{

Callers

nothing calls this directly

Calls 3

postToUiThreadFunction · 0.85
logFunction · 0.50

Tested by

no test coverage detected