Last stretch to get PPC native tests working

This commit is contained in:
Dr. Chat
2017-05-11 15:09:43 -05:00
parent 7eceb9db09
commit 737b78ad49
8 changed files with 131 additions and 52 deletions

View File

@@ -36,7 +36,8 @@ void set_name(std::thread::native_handle_type handle, const std::string& name) {
}
void Sleep(std::chrono::microseconds duration) {
timespec rqtp = {duration.count() / 1000000, duration.count() % 1000};
timespec rqtp = {time_t(duration.count() / 1000000),
time_t(duration.count() % 1000)};
nanosleep(&rqtp, nullptr);
// TODO(benvanik): spin while rmtp >0?
}