X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0650a391bb8055d42aef8bf3eb33a3a58c07643d..aad6442f8fd7d7610f49271010cb8a650f4772de:/src/smpi/internals/smpi_global.cpp diff --git a/src/smpi/internals/smpi_global.cpp b/src/smpi/internals/smpi_global.cpp index 091dcb2652..4a7ef4f2bf 100644 --- a/src/smpi/internals/smpi_global.cpp +++ b/src/smpi/internals/smpi_global.cpp @@ -352,8 +352,7 @@ void smpi_global_destroy() if (process->comm_intra() != MPI_COMM_NULL) { simgrid::smpi::Comm::destroy(process->comm_intra()); } - xbt_os_timer_free(process->timer()); - xbt_mutex_destroy(process->mailboxes_mutex()); + delete process; } process_data.clear(); @@ -623,13 +622,6 @@ void SMPI_init(){ simgrid::s4u::Actor::onCreation.connect([](simgrid::s4u::ActorPtr actor) { process_data.insert({actor, new simgrid::smpi::Process(actor, nullptr)}); }); - simgrid::s4u::Actor::onDestruction.connect([](simgrid::s4u::ActorPtr actor) { - if (process_data.find(actor) != process_data.end()) { - delete process_data.at(actor); - process_data.erase(actor); - } - }); - smpi_init_options(); smpi_global_init(); smpi_check_options();