thread/Name: set thread names

For debugging.
This commit is contained in:
Max Kellermann
2014-01-23 10:07:14 +01:00
parent 1d547fe273
commit ec41d849bb
7 changed files with 79 additions and 0 deletions

View File

@@ -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);