diff options
author | Max Kellermann <max@musicpd.org> | 2019-10-09 14:40:02 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-10-09 14:40:02 +0200 |
commit | c89c7f71a2fd2fb6d41ca67639467f8ed07402ad (patch) | |
tree | e5882d3037db2ba775ce102e16fa0764958a33d7 /src/thread | |
parent | 2f3e94f8d089f676bc319499f784b3d32c19637e (diff) |
thread/Util: lower the real-time priority from 50 to 40
On linux-rt, kernel IRQ threads are configured with priority=50, and
this change configures MPD somewhat below that priority, leaving some
room for other programs to be configured in between.
Closes https://github.com/MusicPlayerDaemon/MPD/issues/643
Diffstat (limited to 'src/thread')
-rw-r--r-- | src/thread/Util.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/Util.cxx b/src/thread/Util.cxx index 5b61b62be..07c224ddd 100644 --- a/src/thread/Util.cxx +++ b/src/thread/Util.cxx @@ -101,7 +101,7 @@ SetThreadRealtime() { #ifdef __linux__ struct sched_param sched_param; - sched_param.sched_priority = 50; + sched_param.sched_priority = 40; int policy = SCHED_FIFO; #ifdef SCHED_RESET_ON_FORK |