Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Introduce ActorIDTrait to split ActorImpl apart
[simgrid.git] / src / kernel / EngineImpl.cpp
index b105c175be06a9972cfb281d7e38849b5da646c7..76a938dd96b2e41e87a43d183ec5be1410f2f288 100644 (file)
@@ -451,10 +451,10 @@ void EngineImpl::wake_all_waiting_actors() const
  */
 void EngineImpl::run_all_actors()
 {
-  instance_->get_context_factory()->run_all();
+  instance_->get_context_factory()->run_all(actors_to_run_);
 
   for (auto const& actor : actors_to_run_)
-    if (actor->context_->to_be_freed())
+    if (actor->to_be_freed())
       actor->cleanup_from_kernel();
 
   actors_to_run_.swap(actors_that_ran_);