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:
Wim Taymans 2019-09-09 17:17:03 +02:00
parent 3340f3cacc
commit 9c9bff8fe9
5 changed files with 49 additions and 9 deletions

View file

@ -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);