mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
loop: add method to run a function with the lock
Convert some _invoke to _locked
This commit is contained in:
parent
fb49e0795c
commit
f7fdafc203
18 changed files with 99 additions and 57 deletions
|
|
@ -1239,12 +1239,11 @@ static void client_node_resource_destroy(void *data)
|
|||
spa_hook_remove(&impl->object_listener);
|
||||
|
||||
if (impl->data_source.fd != -1) {
|
||||
spa_loop_invoke(impl->data_loop,
|
||||
spa_loop_locked(impl->data_loop,
|
||||
do_remove_source,
|
||||
SPA_ID_INVALID,
|
||||
NULL,
|
||||
0,
|
||||
true,
|
||||
&impl->data_source);
|
||||
}
|
||||
if (this->node)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue