From: Stefan Neis Date: Wed, 28 Jul 2004 16:02:50 +0000 (+0000) Subject: Switched from wxUsleep to wxMilliSleep/wxMicroSleep. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d3a919bdcef1691d993419fdad6370289d0339b8 Switched from wxUsleep to wxMilliSleep/wxMicroSleep. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/os2/evtloop.cpp b/src/os2/evtloop.cpp index 4e3a117288..143a0a2ca6 100644 --- a/src/os2/evtloop.cpp +++ b/src/os2/evtloop.cpp @@ -296,7 +296,7 @@ int wxEventLoop::Run() while ( !Pending() && m_impl->SendIdleMessage() ) { wxTheApp->HandleSockets(); - wxUsleep(10); + wxMilliSleep(10); } wxTheApp->HandleSockets(); @@ -309,7 +309,7 @@ int wxEventLoop::Run() } } else - wxUsleep(10); + wxMilliSleep(10); } return m_impl->GetExitCode(); diff --git a/src/os2/utils.cpp b/src/os2/utils.cpp index 9a91d673ab..80f9a04b3c 100644 --- a/src/os2/utils.cpp +++ b/src/os2/utils.cpp @@ -260,13 +260,20 @@ bool wxSetEnv(const wxString& variable, const wxChar *value) #endif } -void wxUsleep( +void wxMilliSleep( unsigned long ulMilliseconds ) { ::DosSleep(ulMilliseconds); } +void wxMicroSleep( + unsigned long ulMicroseconds +) +{ + ::DosSleep(ulMicroseconds/1000); +} + void wxSleep( int nSecs )