Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SURF] Move Action::suspended_ to new enum class SuspendedStates
[simgrid.git] / src / surf / cpu_cas01.cpp
index 1b9f80d..369d1f7 100644 (file)
@@ -175,7 +175,7 @@ CpuAction *CpuCas01::sleep(double duration)
 
   // FIXME: sleep variables should not consume 1.0 in System::expand()
   action->setMaxDuration(duration);
-  action->suspended_ = 2;
+  action->suspended_ = Action::SuspendStates::sleeping;
   if (duration < 0) { // NO_MAX_DURATION
     /* Move to the *end* of the corresponding action set. This convention is used to speed up update_resource_state */
     simgrid::xbt::intrusive_erase(*action->getStateSet(), *action);