bool wxAppConsoleBase::Yield(bool onlyIfNeeded) { wxEventLoopBase * const loop = wxEventLoopBase::GetActive(); if ( loop ) return loop->Yield(onlyIfNeeded); wxScopedPtr<wxEventLoopBase> tmpLoop(CreateMainLoop()); return tmpLoop->Yield(onlyIfNeeded); }
int wxAppConsoleBase::MainLoop() { wxEventLoopBaseTiedPtr mainLoop(&m_mainLoop, CreateMainLoop()); if (wxTheApp) wxTheApp->OnLaunched(); return m_mainLoop ? m_mainLoop->Run() : -1; }
int wxAppConsoleBase::MainLoop() { wxEventLoopBaseTiedPtr mainLoop(&m_mainLoop, CreateMainLoop()); return m_mainLoop ? m_mainLoop->Run() : -1; }