X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d8eb62b207b566949a0d9ce649a7b21e226b9168..bffbfb29b42b5cb1c3f70fd6a806f53e4412f78d:/src/simix/smx_global.cpp diff --git a/src/simix/smx_global.cpp b/src/simix/smx_global.cpp index e1fbbdfff0..eecd1d4c2b 100644 --- a/src/simix/smx_global.cpp +++ b/src/simix/smx_global.cpp @@ -185,7 +185,6 @@ void SIMIX_global_init(int *argc, char **argv) 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(); @@ -267,8 +266,6 @@ void SIMIX_clean() 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); @@ -509,7 +506,7 @@ void SIMIX_run() /* 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();