X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e7d70ef0e33c1dfddd42a9d9383dd1ec2e2a9a77..0df4335d4dbd5ea8b1cdf7fdd44ae9b0251c750b:/src/os2/evtloop.cpp?ds=sidebyside 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();