thread/Slack: use std::chrono::duration

This commit is contained in:
Max Kellermann
2019-05-29 21:11:32 +02:00
parent 14cee01ba1
commit 620a39afb4
4 changed files with 10 additions and 13 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ EventThread::Run() noexcept
SetThreadName(realtime ? "rtio" : "io");
if (realtime) {
SetThreadTimerSlackUS(10);
SetThreadTimerSlack(std::chrono::microseconds(10));
try {
SetThreadRealtime();