mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -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
|
|
@ -744,8 +744,8 @@ impl_node_port_set_io(void *object,
|
|||
switch (id) {
|
||||
case SPA_IO_Buffers:
|
||||
case SPA_IO_AsyncBuffers:
|
||||
spa_loop_invoke(this->data_loop,
|
||||
do_port_set_io, SPA_ID_INVALID, NULL, 0, true, &info);
|
||||
spa_loop_locked(this->data_loop,
|
||||
do_port_set_io, SPA_ID_INVALID, NULL, 0, &info);
|
||||
break;
|
||||
default:
|
||||
return -ENOENT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue