Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move the actor lifecycle markers from Context to ActorImpl
[simgrid.git] / src / kernel / EngineImpl.cpp
index b105c17..79f12ec 100644 (file)
@@ -454,7 +454,7 @@ void EngineImpl::run_all_actors()
   instance_->get_context_factory()->run_all();
 
   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_);