corrected sleep
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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()
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user