Name threads for easier debugging.

This commit is contained in:
Johns 2011-12-30 16:47:57 +01:00
parent bded2ae5df
commit 12bfab3f10
3 changed files with 5 additions and 0 deletions

2
Todo
View File

@ -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

View File

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

View File

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