mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-21 07:00:08 -05:00
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:
parent
2180b6aa17
commit
2aa7283cc2
2 changed files with 1 additions and 2 deletions
|
|
@ -411,8 +411,6 @@ struct pw_context *pw_context_new(struct pw_loop *main_loop,
|
||||||
pw_data_loop_invoke(this->data_loop_impl,
|
pw_data_loop_invoke(this->data_loop_impl,
|
||||||
do_data_loop_setup, 0, NULL, 0, false, this);
|
do_data_loop_setup, 0, NULL, 0, false, this);
|
||||||
|
|
||||||
context_set_freewheel(this, false);
|
|
||||||
|
|
||||||
pw_settings_expose(this);
|
pw_settings_expose(this);
|
||||||
|
|
||||||
pw_log_debug("%p: created", this);
|
pw_log_debug("%p: created", this);
|
||||||
|
|
|
||||||
|
|
@ -211,6 +211,7 @@ int pw_data_loop_start(struct pw_data_loop *loop)
|
||||||
loop->running = false;
|
loop->running = false;
|
||||||
return -errno;
|
return -errno;
|
||||||
}
|
}
|
||||||
|
spa_thread_utils_acquire_rt(utils, thr, -1);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue