Logo Search packages:      
Sourcecode: pulseaudio version File versions  Download package

void pa_threaded_mainloop_stop ( pa_threaded_mainloop m  ) 

Terminate the event loop thread cleanly. Make sure to unlock the mainloop object before calling this function.

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

                                                        {
    pa_assert(m);

    if (!m->thread || !pa_thread_is_running(m->thread))
        return;

    /* Make sure that this function is not called from the helper thread */
    pa_assert(!in_worker(m));

    pa_mutex_lock(m->mutex);
    pa_mainloop_quit(m->real_mainloop, 0);
    pa_mutex_unlock(m->mutex);

    pa_thread_join(m->thread);
}


Generated by  Doxygen 1.6.0   Back to index