diff options
author | Johns <johns98@gmx.net> | 2011-12-30 16:47:57 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2011-12-30 16:47:57 +0100 |
commit | 12bfab3f10ad4c1de6c650e9d1fdecd906683821 (patch) | |
tree | 0c9a814587b29189ccb01a5fc0e16b452a11ce6a | |
parent | bded2ae5dfa5e8b79c900699c6b6e87b784b71ed (diff) | |
download | vdr-plugin-softhddevice-12bfab3f10ad4c1de6c650e9d1fdecd906683821.tar.gz vdr-plugin-softhddevice-12bfab3f10ad4c1de6c650e9d1fdecd906683821.tar.bz2 |
Name threads for easier debugging.
-rw-r--r-- | Todo | 2 | ||||
-rw-r--r-- | audio.c | 2 | ||||
-rw-r--r-- | video.c | 1 |
3 files changed, 5 insertions, 0 deletions
@@ -7,6 +7,8 @@ missing: atmolight zoom/fit-zoom 4:3 multistream handling + audio out with oss/oss4 + HDMI/SPDIF Passthrough vdpau: 1080i with temporal spatial too slow GT 520 @@ -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); @@ -5709,6 +5709,7 @@ void VideoDisplayHandler(void) pthread_mutex_init(&VideoLockMutex, NULL); pthread_cond_init(&VideoWakeupCond, NULL); pthread_create(&VideoThread, NULL, VideoDisplayHandlerThread, NULL); + pthread_setname_np(VideoThread, "softhddev video"); //pthread_detach(VideoThread); } } |