X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/ae7e1cc677c476f528ac4b75a69c5cc4722ec23b..446befde6728fa65bc0170a4f65e8e34d09316f1:/main.cpp?ds=inline diff --git a/main.cpp b/main.cpp index 4c70534..af47c64 100644 --- a/main.cpp +++ b/main.cpp @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include // Creates log categories @@ -24,6 +24,7 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(main); #include "misc.h" #include "options.h" #include "process.h" +#include "simgrid_features.h" #include "statistics.h" #include "synchro.h" #include "timer.h" @@ -202,7 +203,7 @@ int main(int argc, char* argv[]) double simulated_time = -1.0; timestamp elapsed_time(timestamp::wallclock_time); timestamp simulation_time(timestamp::cpu_time); - MSG_error_t res; + msg_error_t res; elapsed_time.start(); simulation_time.start(); @@ -219,7 +220,7 @@ int main(int argc, char* argv[]) } // Initialize some MSG internal data. - MSG_global_init(&argc, argv); + MSG_init(&argc, argv); install_signal_handler(); // Parse global parameters @@ -233,7 +234,6 @@ int main(int argc, char* argv[]) "Compiled on " << version::date << "\n\n"; if (!parse_res || opt::help_requested) opt::usage(); - MSG_clean(); exit(parse_res ? EXIT_NO_FAILURE : EXIT_FAILURE_ARGS); } XBT_INFO("%s v%s (%s)", opt::program_name.c_str(), version::num.c_str(), @@ -307,11 +307,6 @@ int main(int argc, char* argv[]) // Clean the MSG simulation. hostdata::destroy(); - res = MSG_clean(); - if (res != MSG_OK) { - XBT_ERROR("MSG_clean() failed with status %#x", res); - exit_status |= EXIT_FAILURE_CLEAN; - } // Report final simulation status. if (simulated_time >= 0.0) {