Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill another old-fashioned simcall
[simgrid.git] / src / s4u / s4u_actor.cpp
index 3d8a38e..859dfe7 100644 (file)
@@ -62,7 +62,7 @@ void Actor::join() {
 }
 
 void Actor::setAutoRestart(bool autorestart) {
 }
 
 void Actor::setAutoRestart(bool autorestart) {
-  simcall_process_auto_restart_set(pimpl_,autorestart);
+  simgrid::simix::kernelImmediate([this, autorestart]() { pimpl_->auto_restart = autorestart; });
 }
 
 void Actor::onExit(int_f_pvoid_pvoid_t fun, void* data)
 }
 
 void Actor::onExit(int_f_pvoid_pvoid_t fun, void* data)