From: Martin Quinson Date: Wed, 24 Jul 2019 22:03:53 +0000 (+0200) Subject: inline a function X-Git-Tag: v3.24~261 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/cd1ef5df3b8b8acea61715623c25ac3cd12caf33?hp=f39cc0a4b24cb916e79aa0ec311ae87303491a3b inline a function --- 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 */