mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
data-loop: add _wait function
Add function to wait for one iteration of the loop. This can be used by specialized implementations of the data loop, like jack.
This commit is contained in:
parent
3340f3cacc
commit
9c9bff8fe9
5 changed files with 49 additions and 9 deletions
|
|
@ -1254,8 +1254,8 @@ static void node_initialized(void *data)
|
|||
struct spa_system *data_system = impl->node.data_system;
|
||||
size_t size;
|
||||
|
||||
impl->fds[0] = spa_system_eventfd_create(data_system, SPA_FD_CLOEXEC);
|
||||
impl->fds[1] = spa_system_eventfd_create(data_system, SPA_FD_CLOEXEC);
|
||||
impl->fds[0] = spa_system_eventfd_create(data_system, SPA_FD_CLOEXEC | SPA_FD_NONBLOCK);
|
||||
impl->fds[1] = spa_system_eventfd_create(data_system, SPA_FD_CLOEXEC | SPA_FD_NONBLOCK);
|
||||
impl->other_fds[0] = impl->fds[1];
|
||||
impl->other_fds[1] = impl->fds[0];
|
||||
node->data_source.fd = impl->fds[0];
|
||||
|
|
@ -1537,7 +1537,7 @@ static void node_peer_added(void *data, struct pw_node *peer)
|
|||
pw_log_debug(NAME " %p: can't ensure mem: %m", this);
|
||||
return;
|
||||
}
|
||||
pw_log_debug(NAME " %p: peer %p %u added %u", &impl->this, peer,
|
||||
pw_log_debug(NAME " %p: peer %p id:%u added mem_id:%u", &impl->this, peer,
|
||||
peer->info.id, m->id);
|
||||
|
||||
if (this->resource == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue