Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
inline a useless function
[simgrid.git] / src / kernel / activity / SleepImpl.cpp
index bc34a78..054d467 100644 (file)
@@ -5,6 +5,7 @@
 
 #include "simgrid/s4u/Host.hpp"
 
+#include "simgrid/kernel/resource/Action.hpp"
 #include "src/kernel/activity/SleepImpl.hpp"
 #include "src/kernel/context/Context.hpp"
 
@@ -31,13 +32,13 @@ void simgrid::kernel::activity::SleepImpl::post()
     simcalls.pop_front();
 
     e_smx_state_t result;
-    switch (surf_sleep->getState()) {
-      case simgrid::surf::Action::State::failed:
+    switch (surf_sleep->get_state()) {
+      case simgrid::kernel::resource::Action::State::failed:
         simcall->issuer->context->iwannadie = 1;
         result                              = SIMIX_SRC_HOST_FAILURE;
         break;
 
-      case simgrid::surf::Action::State::done:
+      case simgrid::kernel::resource::Action::State::done:
         result = SIMIX_DONE;
         break;