diff options
author | Max Kellermann <max@duempel.org> | 2014-01-14 09:59:04 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-14 09:59:04 +0100 |
commit | 4734af747b3f7c4560cbf7757f4d857445382f01 (patch) | |
tree | a6c7a68994f7eddcc8f05bc808c39ae5f133f86f /src/OutputThread.cxx | |
parent | 5d17731b73bf485f8536fb6284ab32cdbb4789b0 (diff) | |
download | mpd-4734af747b3f7c4560cbf7757f4d857445382f01.tar.gz mpd-4734af747b3f7c4560cbf7757f4d857445382f01.tar.xz mpd-4734af747b3f7c4560cbf7757f4d857445382f01.zip |
OutputThread: use real-time priority
Diffstat (limited to 'src/OutputThread.cxx')
-rw-r--r-- | src/OutputThread.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/OutputThread.cxx b/src/OutputThread.cxx index 1b5a44e9d..b56e7f1ca 100644 --- a/src/OutputThread.cxx +++ b/src/OutputThread.cxx @@ -30,6 +30,7 @@ #include "PlayerControl.hxx" #include "MusicPipe.hxx" #include "MusicChunk.hxx" +#include "thread/Util.hxx" #include "system/FatalError.hxx" #include "util/Error.hxx" #include "Log.hxx" @@ -578,6 +579,8 @@ audio_output_task(void *arg) { struct audio_output *ao = (struct audio_output *)arg; + SetThreadRealtime(); + ao->mutex.lock(); while (1) { |