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.
This commit is contained in:
Wim Taymans 2022-03-29 11:32:09 +02:00
parent 2180b6aa17
commit 2aa7283cc2
2 changed files with 1 additions and 2 deletions

View file

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

View file

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