From: Stefan Csomor Date: Sun, 16 May 2004 05:46:53 +0000 (+0000) Subject: using MPSleep also for non Darwin Targets X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9cc64be1d37987d7250d275972302c886ab16943 using MPSleep also for non Darwin Targets git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/utils.cpp b/src/mac/carbon/utils.cpp index 916b83725d..ce536a4832 100644 --- a/src/mac/carbon/utils.cpp +++ b/src/mac/carbon/utils.cpp @@ -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)