Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of https://framagit.org/simgrid/simgrid
[simgrid.git] / src / kernel / activity / Synchro.cpp
index 438a8f4..2067f07 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007-2022. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007-2023. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -28,8 +28,8 @@ SynchroImpl& SynchroImpl::set_timeout(double timeout)
 
 SynchroImpl* SynchroImpl::start()
 {
-  surf_action_ = host_->get_cpu()->sleep(timeout_);
-  surf_action_->set_activity(this);
+  model_action_ = host_->get_cpu()->sleep(timeout_);
+  model_action_->set_activity(this);
   return this;
 }
 
@@ -51,9 +51,9 @@ void SynchroImpl::cancel()
 
 void SynchroImpl::post()
 {
-  if (surf_action_->get_state() == resource::Action::State::FAILED)
+  if (model_action_->get_state() == resource::Action::State::FAILED)
     set_state(State::FAILED);
-  else if (surf_action_->get_state() == resource::Action::State::FINISHED)
+  else if (model_action_->get_state() == resource::Action::State::FINISHED)
     set_state(State::SRC_TIMEOUT);
 
   clean_action();