mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
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:
parent
597a1c4e82
commit
391d09cd6e
10 changed files with 18 additions and 12 deletions
|
|
@ -643,7 +643,7 @@ static void thread_func(void *userdata) {
|
|||
continue;
|
||||
|
||||
/* Hmm, nothing to do. Let's sleep */
|
||||
if (pa_rtpoll_run(u->rtpoll) < 0) {
|
||||
if (pa_rtpoll_run(u->rtpoll, 1) < 0) {
|
||||
pa_log("poll() failed: %s", pa_cstrerror(errno));
|
||||
goto fail;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -626,7 +626,7 @@ static void thread_func(void *userdata) {
|
|||
continue;
|
||||
|
||||
/* Hmm, nothing to do. Let's sleep */
|
||||
if (pa_rtpoll_run(u->rtpoll) < 0) {
|
||||
if (pa_rtpoll_run(u->rtpoll, 1) < 0) {
|
||||
pa_log("poll() failed: %s", pa_cstrerror(errno));
|
||||
goto fail;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -268,7 +268,7 @@ static void thread_func(void *userdata) {
|
|||
continue;
|
||||
|
||||
/* Hmm, nothing to do. Let's sleep */
|
||||
if (pa_rtpoll_run(u->rtpoll) < 0) {
|
||||
if (pa_rtpoll_run(u->rtpoll, 1) < 0) {
|
||||
pa_log("poll() failed: %s", pa_cstrerror(errno));
|
||||
goto fail;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ static void thread_func(void *userdata) {
|
|||
continue;
|
||||
|
||||
/* Hmm, nothing to do. Let's sleep */
|
||||
if (pa_rtpoll_run(u->rtpoll) < 0) {
|
||||
if (pa_rtpoll_run(u->rtpoll, 1) < 0) {
|
||||
pa_log("poll() failed: %s", pa_cstrerror(errno));
|
||||
goto fail;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1031,7 +1031,7 @@ static void thread_func(void *userdata) {
|
|||
}
|
||||
|
||||
/* Hmm, nothing to do. Let's sleep */
|
||||
if (pa_rtpoll_run(u->rtpoll) < 0) {
|
||||
if (pa_rtpoll_run(u->rtpoll, 1) < 0) {
|
||||
pa_log("poll() failed: %s", pa_cstrerror(errno));
|
||||
goto fail;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@ static void thread_func(void *userdata) {
|
|||
/* Hmm, nothing to do. Let's sleep */
|
||||
pollfd->events = u->sink->thread_info.state == PA_SINK_RUNNING ? POLLOUT : 0;
|
||||
|
||||
if (pa_rtpoll_run(u->rtpoll) < 0) {
|
||||
if (pa_rtpoll_run(u->rtpoll, 1) < 0) {
|
||||
pa_log("poll() failed: %s", pa_cstrerror(errno));
|
||||
goto fail;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ static void thread_func(void *userdata) {
|
|||
/* Hmm, nothing to do. Let's sleep */
|
||||
pollfd->events = u->source->thread_info.state == PA_SOURCE_RUNNING ? POLLIN : 0;
|
||||
|
||||
if (pa_rtpoll_run(u->rtpoll) < 0) {
|
||||
if (pa_rtpoll_run(u->rtpoll, 1) < 0) {
|
||||
pa_log("poll() failed: %s", pa_cstrerror(errno));
|
||||
goto fail;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue