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/PlayerThread.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 'src/PlayerThread.cxx')
-rw-r--r-- | src/PlayerThread.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/PlayerThread.cxx b/src/PlayerThread.cxx index 8512c6051..750a1732a 100644 --- a/src/PlayerThread.cxx +++ b/src/PlayerThread.cxx @@ -33,6 +33,7 @@ #include "Idle.hxx" #include "GlobalEvents.hxx" #include "util/Domain.hxx" +#include "thread/Name.hxx" #include "Log.hxx" #include <string.h> @@ -1106,6 +1107,8 @@ player_task(void *arg) { PlayerControl &pc = *(PlayerControl *)arg; + SetThreadName("player"); + DecoderControl dc(pc.mutex, pc.cond); decoder_thread_start(dc); |