]> git.saurik.com Git - wxWidgets.git/commitdiff
using MPSleep also for non Darwin Targets
authorStefan Csomor <csomor@advancedconcepts.ch>
Sun, 16 May 2004 05:46:53 +0000 (05:46 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sun, 16 May 2004 05:46:53 +0000 (05:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/utils.cpp

index 916b83725db9f75c8591812b4572e2efa52fdd77..ce536a483218d2c41ad92ae8837307db3f159ea9 100644 (file)
@@ -198,11 +198,15 @@ long wxGetFreeMemory()
 
 void wxUsleep(unsigned long milliseconds)
 {
+    // TODO remove if we don't encounter any other problemsy
+    /*
     clock_t start = clock() ;
     do
     {
         YieldToAnyThread() ;
     } while( clock() - start < milliseconds /  1000.0 * CLOCKS_PER_SEC ) ;
+    */
+    wxThread::Sleep( milliseconds ) ;
 }
 
 void wxSleep(int nSecs)