mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-10 13:30:05 -05:00
thread-loop: signal when started
This makes it possible to wait for the thread to have started.
This commit is contained in:
parent
be9c6b1842
commit
33be898130
1 changed files with 2 additions and 0 deletions
|
|
@ -282,6 +282,8 @@ static void *do_loop(void *user_data)
|
|||
pw_log_debug("%p: enter thread", this);
|
||||
pw_loop_enter(this->loop);
|
||||
|
||||
pw_thread_loop_signal(this, false);
|
||||
|
||||
while (this->running) {
|
||||
if ((res = pw_loop_iterate(this->loop, -1)) < 0) {
|
||||
if (res == -EINTR)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue