Exemplo n.º 1
0
void
io_thread_deinit(void)
{
	if (io.thread != NULL) {
		io_thread_quit();

		g_thread_join(io.thread);
	}

	if (io.loop != NULL)
		g_main_loop_unref(io.loop);

	if (io.context != NULL)
		g_main_context_unref(io.context);

	g_cond_free(io.cond);
	g_mutex_free(io.mutex);
}
void
on_quit(void)
{
	io_thread_quit();
}