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
This commit is contained in:
Pierre Ossman 2006-02-13 13:37:22 +00:00
parent bbaf1543bd
commit f77d5e14dc
2 changed files with 71 additions and 1 deletions

View file

@ -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