mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
* 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:
parent
5f9bbf005a
commit
4b4c8fd152
3 changed files with 42 additions and 6 deletions
|
|
@ -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[]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue