NAMESPACE_SPH_BEGIN void executeOnMainThread(const Function< void()> &function)
Posts a callback to be executed on main thread.
wxDEFINE_EVENT(MAIN_LOOP_TYPE, Sph::MainLoopEvent)
Posting events to be executed on main thread.
Custom event holding a callback.