X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/90a471de6cd70b41223dd16a09fafe6ac3e18269..80a6bd086a056f455d97da1d07802ce8ffd60ed7:/src/surf/surf_interface.cpp?ds=sidebyside diff --git a/src/surf/surf_interface.cpp b/src/surf/surf_interface.cpp index 8a7caad677..c9590e81d8 100644 --- a/src/surf/surf_interface.cpp +++ b/src/surf/surf_interface.cpp @@ -17,6 +17,7 @@ #include "virtual_machine.hpp" #include "src/instr/instr_private.h" // TRACE_is_enabled(). FIXME: remove by subscribing tracing to the surf signals #include "simgrid/s4u/engine.hpp" +#include XBT_LOG_NEW_CATEGORY(surf, "All SURF categories"); XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_kernel, surf, "Logging specific to SURF (kernel)"); @@ -32,7 +33,7 @@ xbt_dynar_t model_list_invoke = nullptr; /* to invoke callbacks */ simgrid::trace_mgr::future_evt_set *future_evt_set = nullptr; xbt_dynar_t surf_path = nullptr; -xbt_dynar_t host_that_restart = xbt_dynar_new(sizeof(char*), nullptr); +std::vector host_that_restart; xbt_dict_t watched_hosts_lib; namespace simgrid { @@ -300,7 +301,6 @@ void surf_init(int *argc, char **argv) }); XBT_DEBUG("Add SURF levels"); - simgrid::surf::HostImpl::classInit(); SURF_STORAGE_LEVEL = xbt_lib_add_level(storage_lib,surf_storage_free); xbt_init(argc, argv); @@ -324,9 +324,6 @@ void surf_exit() { TRACE_end(); /* Just in case it was not called by the upper layer (or there is no upper layer) */ - sg_config_finalize(); - - xbt_dynar_free(&host_that_restart); xbt_dynar_free(&surf_path); xbt_dict_free(&host_list);