From 2aa7283cc25d4dc85701721477479935b0f425f3 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 29 Mar 2022 11:32:09 +0200 Subject: [PATCH] data-loop: always acquire rt priority Always set the thread to rt priority when starting. We can then remove the code to trigger this from the context. --- src/pipewire/context.c | 2 -- src/pipewire/data-loop.c | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pipewire/context.c b/src/pipewire/context.c index 11c3f3fd2..a338c377d 100644 --- a/src/pipewire/context.c +++ b/src/pipewire/context.c @@ -411,8 +411,6 @@ struct pw_context *pw_context_new(struct pw_loop *main_loop, pw_data_loop_invoke(this->data_loop_impl, do_data_loop_setup, 0, NULL, 0, false, this); - context_set_freewheel(this, false); - pw_settings_expose(this); pw_log_debug("%p: created", this); diff --git a/src/pipewire/data-loop.c b/src/pipewire/data-loop.c index ca04b9872..47ea8d3fd 100644 --- a/src/pipewire/data-loop.c +++ b/src/pipewire/data-loop.c @@ -211,6 +211,7 @@ int pw_data_loop_start(struct pw_data_loop *loop) loop->running = false; return -errno; } + spa_thread_utils_acquire_rt(utils, thr, -1); } return 0; }