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

void pa_threaded_mainloop_free ( pa_threaded_mainloop m  ) 

Free a threaded main loop object. If the event loop thread is still running, it is terminated using pa_threaded_mainloop_stop() first.

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

                                                        {
    pa_assert(m);

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

    pa_threaded_mainloop_stop(m);

    if (m->thread)
        pa_thread_free(m->thread);

    pa_mainloop_free(m->real_mainloop);

    pa_mutex_free(m->mutex);
    pa_cond_free(m->cond);
    pa_cond_free(m->accept_cond);

    pa_xfree(m);
}


Generated by  Doxygen 1.6.0   Back to index