From f77d5e14dc6c18846f228af3f2d6436537077f1d Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 13 Feb 2006 13:37:22 +0000 Subject: Add function to "wake up", i.e. interrupt, a running poll(). This is needed when having the poll() in a separate thread. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@479 fefdeb5f-60dc-0310-8127-8f9354f1896f --- polyp/mainloop.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'polyp/mainloop.h') diff --git a/polyp/mainloop.h b/polyp/mainloop.h index 2be9e6ff..921a0709 100644 --- a/polyp/mainloop.h +++ b/polyp/mainloop.h @@ -82,6 +82,9 @@ int pa_mainloop_deferred_pending(pa_mainloop *m); /** Shutdown the main loop */ void pa_mainloop_quit(pa_mainloop *m, int r); +/** Interrupt a running poll (for threaded systems) */ +void pa_mainloop_wakeup(pa_mainloop *m); + PA_C_DECL_END #endif -- cgit