Logo Search packages:      
Sourcecode: pulseaudio version File versions

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 170 of file thread-mainloop.c.


    /* 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));


Generated by  Doxygen 1.6.0   Back to index