null-sink,null-source: Use realtime scheduling if possible

We do this on other sink/source modules, and in general it makes sense
to do so here as well.
This commit is contained in:
Arun Raghavan 2018-05-04 19:18:15 +05:30
parent 78b6c4fe92
commit 55525d75b8
2 changed files with 8 additions and 0 deletions

View file

@ -28,6 +28,7 @@
#include <pulse/rtclock.h>
#include <pulse/timeval.h>
#include <pulse/util.h>
#include <pulse/xmalloc.h>
#include <pulsecore/i18n.h>
@ -206,6 +207,9 @@ static void thread_func(void *userdata) {
pa_log_debug("Thread starting up");
if (u->core->realtime_scheduling)
pa_thread_make_realtime(u->core->realtime_priority);
pa_thread_mq_install(&u->thread_mq);
u->timestamp = pa_rtclock_now();