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

void avahi_threaded_poll_free ( AvahiThreadedPoll p  ) 

Free an event loop object. This will stop the associated event loop thread (if it is running).

Since:
0.6.4

Definition at line 107 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));

    if (p->thread_running)
        avahi_threaded_poll_stop(p);

    if (p->simple_poll)
        avahi_simple_poll_free(p->simple_poll);

    pthread_mutex_destroy(&p->mutex);
    avahi_free(p);
}


Generated by  Doxygen 1.6.0   Back to index