diff options
author | Pierre Ossman <ossman@cendio.se> | 2006-02-13 13:37:22 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2006-02-13 13:37:22 +0000 |
commit | f77d5e14dc6c18846f228af3f2d6436537077f1d (patch) | |
tree | 85d94e846832033a88a01d45ed1a474268679bab /polyp/mainloop.h | |
parent | bbaf1543bd77e5c428e5e4c7d40fde0a42bf3daf (diff) |
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
Diffstat (limited to 'polyp/mainloop.h')
-rw-r--r-- | polyp/mainloop.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |