summaryrefslogtreecommitdiff
path: root/audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio.c')
-rw-r--r--audio.c2
1 files changed, 2 insertions, 0 deletions
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);