mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
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:
parent
78b6c4fe92
commit
55525d75b8
2 changed files with 8 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue