void mowgli_mutex_destroy(mowgli_mutex_t *mutex) { return_if_fail(mutex != NULL); mowgli_mutex_uninit(mutex); mowgli_free(mutex); }
void mowgli_eventloop_destroy(mowgli_eventloop_t *eventloop) { eventloop->eventloop_ops->pollshutdown(eventloop); mowgli_mutex_uninit(&eventloop->mutex); mowgli_heap_free(eventloop_heap, eventloop); }