Logo Search packages:      
Sourcecode: pulseaudio version File versions

void pa_threaded_mainloop_signal ( pa_threaded_mainloop m,
int  wait_for_accept 
)

Signal all threads waiting for a signalling event in pa_threaded_mainloop_wait(). If wait_for_release is non-zero, do not return before the signal was accepted by a pa_threaded_mainloop_accept() call. While waiting for that condition the event loop object is unlocked.

Definition at line 184 of file thread-mainloop.c.

                                                                               {
    pa_assert(m);

    pa_cond_signal(m->cond, 1);

    if (wait_for_accept && m->n_waiting > 0)
        pa_cond_wait(m->accept_cond, m->mutex);
}


Generated by  Doxygen 1.6.0   Back to index