* optionally, make pa_threaded_mainloop_signal() wait until the main thread took over control

* more header file comments


git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@831 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2006-05-06 20:58:02 +00:00
parent 5f9bbf005a
commit 4b4c8fd152
3 changed files with 42 additions and 6 deletions

View file

@ -33,8 +33,9 @@
#include <polyp/thread-mainloop.h>
static void tcb(pa_mainloop_api*a, pa_time_event *e, const struct timeval *tv, void *userdata) {
fprintf(stderr, "TIME EVENT\n");
pa_threaded_mainloop_signal(userdata);
fprintf(stderr, "TIME EVENT START\n");
pa_threaded_mainloop_signal(userdata, 1);
fprintf(stderr, "TIME EVENT END\n");
}
int main(PA_GCC_UNUSED int argc, PA_GCC_UNUSED char *argv[]) {