From 12bfab3f10ad4c1de6c650e9d1fdecd906683821 Mon Sep 17 00:00:00 2001 From: Johns Date: Fri, 30 Dec 2011 16:47:57 +0100 Subject: Name threads for easier debugging. --- audio.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'audio.c') diff --git a/audio.c b/audio.c index 472499a..fdbb792 100644 --- a/audio.c +++ b/audio.c @@ -445,7 +445,9 @@ static void AudioInitThread(void) pthread_mutex_init(&AudioMutex, NULL); pthread_cond_init(&AudioStartCond, NULL); pthread_create(&AudioThread, NULL, AudioPlayHandlerThread, NULL); + pthread_setname_np(AudioThread, "softhddev audio"); //pthread_detach(AudioThread); + // wait until thread has opened and is ready do { pthread_yield(); } while (!AlsaPCMHandle); -- cgit v1.2.3