void_pfn_smxprocess_t cleanup_func,
smx_process_t simix_process)
{
- if (!simix_global)
- xbt_die("simix is not initialized, please call MSG_init first");
+ xbt_assert(simix_global, "simix is not initialized, please call MSG_init first");
return simix_global->context_factory->create_context(
std::move(code), cleanup_func, simix_process);
}
}
}
-/**
- * \brief Creates and runs the maestro process
- */
+/** @brief Creates and runs the maestro process */
void SIMIX_maestro_create(void (*code)(void*), void* data)
{
simgrid::simix::create_maestro(std::bind(code, data));