simix_global->create_process_function = &SIMIX_process_create;
simix_global->kill_process_function = &kill_process;
simix_global->cleanup_process_function = &SIMIX_process_cleanup;
- simix_global->mutex = xbt_os_mutex_init();
surf_init(argc, argv); /* Initialize SURF structures */
SIMIX_context_mod_init();
simix_global->process_to_destroy.clear();
simix_global->process_list.clear();
- xbt_os_mutex_destroy(simix_global->mutex);
- simix_global->mutex = nullptr;
#if SIMGRID_HAVE_MC
xbt_dynar_free(&simix_global->actors_vector);
xbt_dynar_free(&simix_global->dead_actors_vector);
/* Autorestart all process */
for (auto const& host : host_that_restart) {
XBT_INFO("Restart processes on host %s", host->get_cname());
- SIMIX_host_autorestart(host);
+ host->turn_on();
}
host_that_restart.clear();