diff options
Diffstat (limited to 'src/pulsecore/rtpoll.h')
-rw-r--r-- | src/pulsecore/rtpoll.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pulsecore/rtpoll.h b/src/pulsecore/rtpoll.h index 7fe5cb37..f393f918 100644 --- a/src/pulsecore/rtpoll.h +++ b/src/pulsecore/rtpoll.h @@ -58,7 +58,10 @@ void pa_rtpoll_free(pa_rtpoll *p); void pa_rtpoll_install(pa_rtpoll *p); -int pa_rtpoll_run(pa_rtpoll *f); +/* Sleep on the rtpoll until the time event, or any of the fd events + * is triggered. If "wait" is 0 we don't sleep but only update the + * struct pollfd. */ +int pa_rtpoll_run(pa_rtpoll *f, int wait); void pa_rtpoll_set_timer_absolute(pa_rtpoll *p, const struct timespec *ts); void pa_rtpoll_set_timer_periodic(pa_rtpoll *p, pa_usec_t usec); |