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

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