X-Git-Url: https://code.delx.au/pulseaudio/blobdiff_plain/7682cab60e13f85dcc9c9398eba0a4d5845e6d8a..9fa3466366fc591e3492ae62a6826bbb48b1e338:/src/pulsecore/thread-mq.h diff --git a/src/pulsecore/thread-mq.h b/src/pulsecore/thread-mq.h index a1f4b3fe..79af3641 100644 --- a/src/pulsecore/thread-mq.h +++ b/src/pulsecore/thread-mq.h @@ -31,12 +31,15 @@ * attached to the thread using pa_thread_mq_install(). */ typedef struct pa_thread_mq { - pa_mainloop_api *mainloop; + pa_mainloop_api *main_mainloop; + pa_mainloop_api *thread_mainloop; pa_asyncmsgq *inq, *outq; - pa_io_event *read_event, *write_event; + pa_io_event *read_main_event, *write_main_event; + pa_io_event *read_thread_event, *write_thread_event; } pa_thread_mq; void pa_thread_mq_init(pa_thread_mq *q, pa_mainloop_api *mainloop, pa_rtpoll *rtpoll); +void pa_thread_mq_init_thread_mainloop(pa_thread_mq *q, pa_mainloop_api *main_mainloop, pa_mainloop_api *thread_mainloop); void pa_thread_mq_done(pa_thread_mq *q); /* Install the specified pa_thread_mq object for the current thread */