From: Stefan Csomor Date: Wed, 11 Feb 2004 15:22:14 +0000 (+0000) Subject: corrected sleep X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/75dd6ce410d2415d57268ebee506d34b239ac7d8?ds=inline corrected sleep git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/thread.cpp b/src/mac/carbon/thread.cpp index ef01ae9b20..47638b3416 100644 --- a/src/mac/carbon/thread.cpp +++ b/src/mac/carbon/thread.cpp @@ -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() diff --git a/src/mac/thread.cpp b/src/mac/thread.cpp index ef01ae9b20..47638b3416 100644 --- a/src/mac/thread.cpp +++ b/src/mac/thread.cpp @@ -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()