check pa_core::high_priority before becoming rt thread

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1694 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2007-08-22 00:27:25 +00:00
parent b3029464a4
commit 7fca89034f
3 changed files with 6 additions and 3 deletions

View file

@ -527,7 +527,8 @@ static void thread_func(void *userdata) {
pa_log_debug("Thread starting up"); pa_log_debug("Thread starting up");
pa_make_realtime(); if (u->core->high_priority)
pa_make_realtime();
pa_thread_mq_install(&u->thread_mq); pa_thread_mq_install(&u->thread_mq);

View file

@ -516,7 +516,8 @@ static void thread_func(void *userdata) {
pa_log_debug("Thread starting up"); pa_log_debug("Thread starting up");
pa_make_realtime(); if (u->core->high_priority)
pa_make_realtime();
pa_thread_mq_install(&u->thread_mq); pa_thread_mq_install(&u->thread_mq);

View file

@ -791,7 +791,8 @@ static void thread_func(void *userdata) {
pa_log_debug("Thread starting up"); pa_log_debug("Thread starting up");
pa_make_realtime(); if (u->core->high_priority)
pa_make_realtime();
pa_thread_mq_install(&u->thread_mq); pa_thread_mq_install(&u->thread_mq);