示例#1
0
static void __iv_deinit(struct iv_state *st)
{
	iv_tls_thread_deinit(st);

	iv_handle_deinit(st);
	iv_timer_deinit(st);

	TlsSetValue(iv_state_index, NULL);

	free(st);
}
示例#2
0
static void __iv_deinit(struct iv_state *st)
{
	iv_tls_thread_deinit(st);

	iv_event_deinit(st);

	iv_fd_deinit(st);
	iv_timer_deinit(st);

	pthr_setspecific(&iv_state_key, NULL);

	free(st);
}
示例#3
0
static void __iv_deinit(struct iv_state *st)
{
	iv_fd_deinit(st);
	iv_timer_deinit(st);
	iv_tls_thread_deinit(st);

	pthread_setspecific(iv_state_key, NULL);
#ifdef HAVE_THREAD
	__st = NULL;
#endif

	barrier();

	free(st);
}