aboutsummaryrefslogtreecommitdiffstats
path: root/src/Main.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main.cxx')
-rw-r--r--src/Main.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index f8f7a6545..ab70c875c 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -60,6 +60,7 @@
#include "util/Error.hxx"
#include "util/Domain.hxx"
#include "thread/Id.hxx"
+#include "thread/Slack.hxx"
#include "config/ConfigGlobal.hxx"
#include "config/ConfigData.hxx"
#include "config/ConfigDefaults.hxx"
@@ -523,6 +524,10 @@ int mpd_main(int argc, char *argv[])
win32_app_started();
#endif
+ /* the MPD frontend does not care about timer slack; set it to
+ a huge value to allow the kernel to reduce CPU wakeups */
+ SetThreadTimerSlackMS(100);
+
/* run the main loop */
main_loop->Run();