From: SUTER Frederic Date: Tue, 21 Sep 2021 09:13:54 +0000 (+0200) Subject: cleanups X-Git-Tag: v3.29~69 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/fc7eb6b5be3c54839e8d8b2132afc433e6c7d378 cleanups --- diff --git a/src/s4u/s4u_Engine.cpp b/src/s4u/s4u_Engine.cpp index f9d5e1a0c9..d28233b3eb 100644 --- a/src/s4u/s4u_Engine.cpp +++ b/src/s4u/s4u_Engine.cpp @@ -92,7 +92,7 @@ void Engine::shutdown() double Engine::get_clock() { if (MC_is_active() || MC_record_replay_is_active()) { - return MC_process_clock_get(SIMIX_process_self()); + return MC_process_clock_get(kernel::actor::ActorImpl::self()); } else { return surf_get_clock(); } @@ -101,7 +101,7 @@ double Engine::get_clock() void Engine::add_model(std::shared_ptr model, const std::vector& dependencies) { - simgrid::kernel::actor::simcall([this, &model, &dependencies] { pimpl->add_model(std::move(model), dependencies); }); + kernel::actor::simcall([this, &model, &dependencies] { pimpl->add_model(std::move(model), dependencies); }); } const std::vector& Engine::get_all_models() const diff --git a/src/simix/smx_global.cpp b/src/simix/smx_global.cpp index 5debbf8363..ab5a52f15f 100644 --- a/src/simix/smx_global.cpp +++ b/src/simix/smx_global.cpp @@ -4,20 +4,8 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "mc/mc.h" -#include "simgrid/kernel/Timer.hpp" #include "simgrid/s4u/Engine.hpp" -#include "simgrid/s4u/Host.hpp" -#include "src/smpi/include/smpi_actor.hpp" - -#include "simgrid/sg_config.hpp" #include "src/kernel/EngineImpl.hpp" -#include "src/mc/mc_record.hpp" -#include "src/mc/mc_replay.hpp" -#include "src/surf/xml/platf.hpp" - -#include "simgrid/kernel/resource/Model.hpp" - -#include XBT_LOG_NEW_CATEGORY(simix, "All SIMIX categories"); XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_kernel, simix, "Logging specific to SIMIX (kernel)");