From ec41d849bbc460d4002ae19e3891b3bda513307e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 23 Jan 2014 10:07:14 +0100 Subject: thread/Name: set thread names For debugging. --- src/OutputThread.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/OutputThread.cxx') 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(); -- cgit v1.2.3