]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected sleep
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 11 Feb 2004 15:22:14 +0000 (15:22 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 11 Feb 2004 15:22:14 +0000 (15:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/thread.cpp
src/mac/thread.cpp

index ef01ae9b20db1bd8a1c252b3c0d6346dff79ee77..47638b34169912dd2d500cc86023b9bf5213c4b9 100644 (file)
@@ -542,7 +542,7 @@ void wxThread::Sleep(unsigned long milliseconds)
         YieldToAnyThread();
         Microseconds(&now);
         msnow = (now.hi * 4294967296.0 + now.lo) ;
-    } while( msstart - msnow < mssleep );
+    } while( msnow - msstart < mssleep );
 }
 
 int wxThread::GetCPUCount()
index ef01ae9b20db1bd8a1c252b3c0d6346dff79ee77..47638b34169912dd2d500cc86023b9bf5213c4b9 100644 (file)
@@ -542,7 +542,7 @@ void wxThread::Sleep(unsigned long milliseconds)
         YieldToAnyThread();
         Microseconds(&now);
         msnow = (now.hi * 4294967296.0 + now.lo) ;
-    } while( msstart - msnow < mssleep );
+    } while( msnow - msstart < mssleep );
 }
 
 int wxThread::GetCPUCount()