From d3a919bdcef1691d993419fdad6370289d0339b8 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Wed, 28 Jul 2004 16:02:50 +0000 Subject: [PATCH 1/1] Switched from wxUsleep to wxMilliSleep/wxMicroSleep. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/evtloop.cpp | 4 ++-- src/os2/utils.cpp | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) 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 ) -- 2.45.2