diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-07-30 23:46:25 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-07-30 23:46:25 +0200 |
commit | 4f5e2b745ea357e2b5c815ff33a556505a7d1f18 (patch) | |
tree | e7099a219f035aebde7f50dc7277075b599550b0 /src/pulse/thread-mainloop.h | |
parent | f8873ab82bee230ec7d0c3a858f8a8b07bc6dddd (diff) |
threaded-mainloop: loop around pa_cond_wait() invocation in pa_threaded_mainloop_signal()
Diffstat (limited to 'src/pulse/thread-mainloop.h')
-rw-r--r-- | src/pulse/thread-mainloop.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pulse/thread-mainloop.h b/src/pulse/thread-mainloop.h index 8eddce4c..41159d98 100644 --- a/src/pulse/thread-mainloop.h +++ b/src/pulse/thread-mainloop.h @@ -274,7 +274,9 @@ void pa_threaded_mainloop_unlock(pa_threaded_mainloop *m); * inside the event loop thread. Prior to this call the event loop * object needs to be locked using pa_threaded_mainloop_lock(). While * waiting the lock will be released, immediately before returning it - * will be acquired again. */ + * will be acquired again. This function may spuriously wake up even + * without _signal() being called. You need to make sure to handle + * that! */ void pa_threaded_mainloop_wait(pa_threaded_mainloop *m); /** Signal all threads waiting for a signalling event in |