*/
static XBT_INLINE void SIMIX_context_runall(void)
{
- simix_global->context_factory->runall();
+ if (!xbt_dynar_is_empty(simix_global->process_to_run)) {
+ simix_global->context_factory->runall();
+ }
}
/**
return simix_global->context_factory->self();
}
+ xbt_die("simix is not initialized, please call MSG_init first");
return NULL;
}