summaryrefslogtreecommitdiff
path: root/src/event
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-05-29 21:11:32 +0200
committerMax Kellermann <max@musicpd.org>2019-05-29 21:11:32 +0200
commit620a39afb4f68291816a98e1f831f2658b5bec17 (patch)
tree86de96f1a4cd8c0b13aa9bf84600303d6463dd03 /src/event
parent14cee01ba1b8068a4abed60431a51e21e4bf6557 (diff)
thread/Slack: use std::chrono::duration
Diffstat (limited to 'src/event')
-rw-r--r--src/event/Thread.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/Thread.cxx b/src/event/Thread.cxx
index 211db54aa..dd8310669 100644
--- a/src/event/Thread.cxx
+++ b/src/event/Thread.cxx
@@ -52,7 +52,7 @@ EventThread::Run() noexcept
SetThreadName(realtime ? "rtio" : "io");
if (realtime) {
- SetThreadTimerSlackUS(10);
+ SetThreadTimerSlack(std::chrono::microseconds(10));
try {
SetThreadRealtime();