add 'wait' parameter to pa_rtpoll_run(), if zero pa_rtpoll_runn will only update the struct pollfd but not wait for an event

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1803 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2007-09-11 13:15:39 +00:00
parent 597a1c4e82
commit 391d09cd6e
10 changed files with 18 additions and 12 deletions

View file

@ -58,7 +58,7 @@ int main(int argc, char *argv[]) {
pa_rtpoll_install(p);
pa_rtpoll_set_timer_periodic(p, 10000000); /* 10 s */
pa_rtpoll_run(p);
pa_rtpoll_run(p, 1);
pa_rtpoll_item_free(i);
@ -70,7 +70,7 @@ int main(int argc, char *argv[]) {
pollfd->fd = 0;
pollfd->events = POLLIN;
pa_rtpoll_run(p);
pa_rtpoll_run(p, 1);
pa_rtpoll_item_free(i);