X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..bb86baea10afec3a7e4860c17b20edd485c628d6:/src/os2/evtloop.cpp diff --git a/src/os2/evtloop.cpp b/src/os2/evtloop.cpp index 4e3a117288..6d72bb674c 100644 --- a/src/os2/evtloop.cpp +++ b/src/os2/evtloop.cpp @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ - #pragma implementation "evtloop.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -227,7 +223,7 @@ bool wxEventLoopImpl::SendIdleMessage() // wxEventLoop implementation // ============================================================================ -wxEventLoop *wxEventLoop::ms_activeLoop = NULL; +wxEventLoop *wxEventLoopBase::ms_activeLoop = NULL; // ---------------------------------------------------------------------------- // wxEventLoop running and exiting @@ -238,11 +234,6 @@ wxEventLoop::~wxEventLoop() wxASSERT_MSG( !m_impl, _T("should have been deleted in Run()") ); } -bool wxEventLoop::IsRunning() const -{ - return m_impl != NULL; -} - ////////////////////////////////////////////////////////////////////////////// // // Keep trying to process messages until WM_QUIT @@ -296,7 +287,7 @@ int wxEventLoop::Run() while ( !Pending() && m_impl->SendIdleMessage() ) { wxTheApp->HandleSockets(); - wxUsleep(10); + wxMilliSleep(10); } wxTheApp->HandleSockets(); @@ -309,7 +300,7 @@ int wxEventLoop::Run() } } else - wxUsleep(10); + wxMilliSleep(10); } return m_impl->GetExitCode();