Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
inline a function
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Wed, 24 Jul 2019 22:03:53 +0000 (00:03 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Wed, 24 Jul 2019 22:26:00 +0000 (00:26 +0200)
src/kernel/context/Context.cpp
src/kernel/context/Context.hpp
src/simix/smx_global.cpp

index 145e1e1..886b201 100644 (file)
@@ -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();
-}
index 60504fa..0d93213 100644 (file)
@@ -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);
index 9510c95..9ad348e 100644 (file)
@@ -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 */