spa: some more invoke -> locked calls

This commit is contained in:
Wim Taymans 2025-03-10 17:46:28 +01:00
parent f7fdafc203
commit f2452a6af7
4 changed files with 17 additions and 17 deletions

View file

@ -280,7 +280,7 @@ static int reassign_follower(struct impl *this)
if (following != this->following) {
spa_log_debug(this->log, "%p: reassign follower %d->%d", this, this->following, following);
this->following = following;
spa_loop_invoke(this->data_loop, do_set_timers, 0, NULL, 0, true, this);
spa_loop_locked(this->data_loop, do_set_timers, 0, NULL, 0, this);
}
return 0;
}
@ -431,7 +431,7 @@ static int do_start(struct impl *this)
this->following = is_following(this);
this->started = true;
this->last_time = 0;
spa_loop_invoke(this->data_loop, do_set_timers, 0, NULL, 0, true, this);
spa_loop_locked(this->data_loop, do_set_timers, 0, NULL, 0, this);
return 0;
}
@ -440,7 +440,7 @@ static int do_stop(struct impl *this)
if (!this->started)
return 0;
this->started = false;
spa_loop_invoke(this->data_loop, do_set_timers, 0, NULL, 0, true, this);
spa_loop_locked(this->data_loop, do_set_timers, 0, NULL, 0, this);
return 0;
}
@ -573,7 +573,7 @@ static int impl_clear(struct spa_handle *handle)
this = (struct impl *) handle;
spa_loop_invoke(this->data_loop, do_remove_timer, 0, NULL, 0, true, this);
spa_loop_locked(this->data_loop, do_remove_timer, 0, NULL, 0, this);
spa_system_close(this->data_system, this->timer_source.fd);
if (this->clock_fd != -1)