maestro->context = SIMIX_context_new(NULL, 0, NULL, NULL, maestro);
maestro->simcall.issuer = maestro;
simix_global->maestro_process = maestro;
- return;
}
/**
* \brief Stops a process.
xbt_os_thread_t xbt_os_thread_self(void)
{
- xbt_os_thread_t res;
-
if (!thread_mod_inited)
return NULL;
- res = pthread_getspecific(xbt_self_thread_key);
-
- return res;
+ return pthread_getspecific(xbt_self_thread_key);
}
void xbt_os_thread_key_create(xbt_os_thread_key_t* key) {
void *xbt_os_thread_get_extra_data(void)
{
- xbt_os_thread_t self = xbt_os_thread_self();
- return self? self->extra_data : NULL;
+ return xbt_os_thread_self()->extra_data;
}
xbt_os_rmutex_t xbt_os_rmutex_init(void)