diff options
author | Max Kellermann <max@duempel.org> | 2014-01-23 10:07:14 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-23 10:07:14 +0100 |
commit | ec41d849bbc460d4002ae19e3891b3bda513307e (patch) | |
tree | 21c08a38ecd7de939af5fcd08afce9b595fa897c /src/OutputThread.cxx | |
parent | 1d547fe273b094e073ed1ad1b96df59ace4380f3 (diff) | |
download | mpd-ec41d849bbc460d4002ae19e3891b3bda513307e.tar.gz mpd-ec41d849bbc460d4002ae19e3891b3bda513307e.tar.xz mpd-ec41d849bbc460d4002ae19e3891b3bda513307e.zip |
thread/Name: set thread names
For debugging.
Diffstat (limited to '')
-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 b56e7f1ca..f7e28b5f4 100644 --- a/src/OutputThread.cxx +++ b/src/OutputThread.cxx @@ -31,6 +31,7 @@ #include "MusicPipe.hxx" #include "MusicChunk.hxx" #include "thread/Util.hxx" +#include "thread/Name.hxx" #include "system/FatalError.hxx" #include "util/Error.hxx" #include "Log.hxx" @@ -579,6 +580,8 @@ audio_output_task(void *arg) { struct audio_output *ao = (struct audio_output *)arg; + FormatThreadName("output:%s", ao->name); + SetThreadRealtime(); ao->mutex.lock(); |