Exemple #1
0
int reeact_policy_pthread_barrier_destroy(void *barrier)
{
#ifdef _REEACT_DEFAULT_POLICY_
	return real_pthread_barrier_destroy((pthread_barrier_t*)barrier);
#else
	// TODO: add user-policy here
	return 0;
#endif
}
Exemple #2
0
void myth_fini_ex_body(void)
{
	//Output Log
	myth_emit_log(stderr);
	//Destroy barrier
	real_pthread_barrier_destroy(&g_worker_barrier);
	//Unload DLL and functions
	//myth_free_original_funcs();
	myth_tls_fini();
#ifdef MYTH_WRAP_SOCKIO
	myth_io_fini();
#endif
	//Finalize logger
	myth_log_fini();
	//Release worker thread descriptors
	myth_free(g_envs,sizeof(myth_running_env)*g_worker_thread_num);
	//Release allocator
	myth_flmalloc_fini();
	myth_malloc_wrapper_fini();
	//Release TLS
	myth_env_fini();
}