Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rework ExecImpl to have a single start() method
[simgrid.git] / src / kernel / actor / ActorImpl.cpp
index 53caa705a70219bb8ff080cce0c56ae773fa4e46..3a5938bfb0eaa445d5472115b098b49e4f3d1eae 100644 (file)
@@ -371,7 +371,9 @@ activity::ActivityImplPtr ActorImpl::suspend(ActorImpl* issuer)
 
     return nullptr;
   } else {
-    return activity::ExecImplPtr(new activity::ExecImpl())->set_name("suspend")->set_host(host_)->start(0.0, 1.0, 0.0);
+    activity::ExecImpl* exec = new activity::ExecImpl();
+    (*exec).set_name("suspend").set_host(host_).set_flops_amount(0.0).start();
+    return activity::ExecImplPtr(exec);
   }
 }