From cd1ef5df3b8b8acea61715623c25ac3cd12caf33 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Thu, 25 Jul 2019 00:03:53 +0200 Subject: [PATCH 1/1] inline a function --- src/kernel/context/Context.cpp | 6 ------ src/kernel/context/Context.hpp | 3 --- src/simix/smx_global.cpp | 4 ++-- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/kernel/context/Context.cpp b/src/kernel/context/Context.cpp index 145e1e1cfe..886b2011a7 100644 --- a/src/kernel/context/Context.cpp +++ b/src/kernel/context/Context.cpp @@ -77,9 +77,3 @@ AttachContext::~AttachContext() = default; } // namespace context } // namespace kernel } // namespace simgrid - -/** @brief Executes all the processes to run (in parallel if possible). */ -void SIMIX_context_runall() -{ - simix_global->context_factory->run_all(); -} diff --git a/src/kernel/context/Context.hpp b/src/kernel/context/Context.hpp index 60504fafd0..0d93213c93 100644 --- a/src/kernel/context/Context.hpp +++ b/src/kernel/context/Context.hpp @@ -109,9 +109,6 @@ XBT_PRIVATE void SIMIX_context_mod_exit(); XBT_PUBLIC_DATA unsigned char sigsegv_stack[SIGSTKSZ]; #endif -/** @brief Executes all the processes to run (in parallel if possible). */ -XBT_PRIVATE void SIMIX_context_runall(); - XBT_PUBLIC int SIMIX_process_get_maxpid(); XBT_PRIVATE simgrid::simix::ActorCodeFactory& SIMIX_get_actor_code_factory(const std::string& name); diff --git a/src/simix/smx_global.cpp b/src/simix/smx_global.cpp index 9510c955fd..9ad348ed7c 100644 --- a/src/simix/smx_global.cpp +++ b/src/simix/smx_global.cpp @@ -187,7 +187,7 @@ void Global::empty_trash() */ void Global::run_all_actors() { - SIMIX_context_runall(); + simix_global->context_factory->run_all(); actors_to_run.swap(actors_that_ran); actors_to_run.clear(); @@ -284,7 +284,7 @@ void SIMIX_clean() /* Kill all processes (but maestro) */ simix_global->maestro_process->kill_all(); - SIMIX_context_runall(); + simix_global->context_factory->run_all(); simix_global->empty_trash(); /* Exit the SIMIX network module */ -- 2.20.1