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

void pa_threaded_mainloop_lock ( pa_threaded_mainloop m  ) 

Lock the event loop object, effectively blocking the event loop thread from processing events. You can use this to enforce exclusive access to all objects attached to the event loop. This lock is recursive. This function may not be called inside the event loop thread. Events that are dispatched from the event loop thread are executed with this lock held.

Definition at line 165 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_mutex_lock(m->mutex);
}


Generated by  Doxygen 1.6.0   Back to index