using MPSleep also for non Darwin Targets

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2004-05-16 05:46:53 +00:00
parent 985934750c
commit 9cc64be1d3

View File

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