Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines with new year.
[simgrid.git] / src / kernel / activity / SynchroRaw.cpp
index 0b11a05..9b9db4f 100644 (file)
@@ -1,9 +1,10 @@
-/* Copyright (c) 2007-2017. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007-2019. 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. */
 
 #include "src/kernel/activity/SynchroRaw.hpp"
+#include "simgrid/kernel/resource/Action.hpp"
 #include "src/simix/smx_synchro_private.hpp"
 #include "src/surf/surf_interface.hpp"
 
@@ -26,10 +27,10 @@ void simgrid::kernel::activity::RawImpl::resume()
 void simgrid::kernel::activity::RawImpl::post()
 {
   XBT_IN("(%p)",this);
-  if (sleep->getState() == simgrid::surf::Action::State::failed)
-    state = SIMIX_FAILED;
-  else if(sleep->getState() == simgrid::surf::Action::State::done)
-    state = SIMIX_SRC_TIMEOUT;
+  if (sleep->get_state() == simgrid::kernel::resource::Action::State::FAILED)
+    state_ = SIMIX_FAILED;
+  else if (sleep->get_state() == simgrid::kernel::resource::Action::State::FINISHED)
+    state_ = SIMIX_SRC_TIMEOUT;
 
   SIMIX_synchro_finish(this);
   XBT_OUT();