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

void avahi_threaded_poll_lock ( AvahiThreadedPoll p  ) 

Lock the main loop object. Use this if you want to access the event loop objects (such as creating a new event source) from anything else but the event loop helper thread, i.e. from anything else but event loop callbacks

Since:
0.6.4

Definition at line 170 of file thread-watch.c.

                                                    {
    assert(p);

    /* Make sure that this function is not called from the helper thread */
    assert(!p->thread_running || !pthread_equal(pthread_self(), p->thread_id));

    pthread_mutex_lock(&p->mutex);
}


Generated by  Doxygen 1.6.0   Back to index