summaryrefslogtreecommitdiff
path: root/audio.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2011-12-30 16:47:57 +0100
committerJohns <johns98@gmx.net>2011-12-30 16:47:57 +0100
commit12bfab3f10ad4c1de6c650e9d1fdecd906683821 (patch)
tree0c9a814587b29189ccb01a5fc0e16b452a11ce6a /audio.c
parentbded2ae5dfa5e8b79c900699c6b6e87b784b71ed (diff)
downloadvdr-plugin-softhddevice-12bfab3f10ad4c1de6c650e9d1fdecd906683821.tar.gz
vdr-plugin-softhddevice-12bfab3f10ad4c1de6c650e9d1fdecd906683821.tar.bz2
Name threads for easier debugging.
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);