mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -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
|
|
@ -162,11 +162,11 @@ struct spa_loop_control_methods {
|
|||
|
||||
/** Perform one iteration of the loop.
|
||||
* \param ctrl the control
|
||||
* \param timeout an optional timeout. 0 for no timeout, -1 for infinte
|
||||
* timeout.
|
||||
* \param timeout an optional timeout in milliseconds.
|
||||
* 0 for no timeout, -1 for infinte timeout.
|
||||
*
|
||||
* This function will block
|
||||
* up to \a timeout and then dispatch the fds with activity.
|
||||
* up to \a timeout milliseconds and then dispatch the fds with activity.
|
||||
* The number of dispatched fds is returned.
|
||||
*/
|
||||
int (*iterate) (void *object, int timeout);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue