X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/df7f0a04ba6c573a8e13738d63d31e5395640ae3..286694ba265d1bf68290cac192bbe54259c313d9:/src/motif/evtloop.cpp diff --git a/src/motif/evtloop.cpp b/src/motif/evtloop.cpp index 782ceeab07..bcb13876da 100644 --- a/src/motif/evtloop.cpp +++ b/src/motif/evtloop.cpp @@ -99,18 +99,13 @@ bool wxEventLoopImpl::SendIdleMessage() // wxEventLoop running and exiting // ---------------------------------------------------------------------------- -wxEventLoop *wxEventLoop::ms_activeLoop = NULL; +wxEventLoop *wxEventLoopBase::ms_activeLoop = NULL; wxEventLoop::~wxEventLoop() { wxASSERT_MSG( !m_impl, _T("should have been deleted in Run()") ); } -bool wxEventLoop::IsRunning() const -{ - return m_impl != NULL; -} - int wxEventLoop::Run() { // event loops are not recursive, you need to create another loop! @@ -360,7 +355,7 @@ bool wxDoEventLoopIteration( wxEventLoop& evtLoop ) // leave the main loop to give other threads a chance to // perform their GUI work wxMutexGuiLeave(); - wxUsleep(20); + wxMilliSleep(20); wxMutexGuiEnter(); } #endif @@ -414,7 +409,7 @@ public: close( idleFds[1] ); } private: - DECLARE_DYNAMIC_CLASS(wxIdlePipeModule); + DECLARE_DYNAMIC_CLASS(wxIdlePipeModule) }; IMPLEMENT_DYNAMIC_CLASS(wxIdlePipeModule, wxModule);