]> git.saurik.com Git - wxWidgets.git/commitdiff
Switched from wxUsleep to wxMilliSleep/wxMicroSleep.
authorStefan Neis <Stefan.Neis@t-online.de>
Wed, 28 Jul 2004 16:02:50 +0000 (16:02 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Wed, 28 Jul 2004 16:02:50 +0000 (16:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/evtloop.cpp
src/os2/utils.cpp

index 4e3a1172889f9836db0e62aaaae58debab16891e..143a0a2ca694ea241a25610cbc11131c5c1dbcac 100644 (file)
@@ -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();
index 9a91d673ab901f35b8b367dcdfcb30187d1b393f..80f9a04b3ca7b06ba8d9490608fdf19e3272fa85 100644 (file)
@@ -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
 )