From 4b4c8fd15293a332d3200f70d2244b0c1ed80874 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 6 May 2006 20:58:02 +0000 Subject: * 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 --- src/tests/thread-mainloop-test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/tests') diff --git a/src/tests/thread-mainloop-test.c b/src/tests/thread-mainloop-test.c index 8232c4a3..24e18b37 100644 --- a/src/tests/thread-mainloop-test.c +++ b/src/tests/thread-mainloop-test.c @@ -33,8 +33,9 @@ #include 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[]) { -- cgit