Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
don't repeat yourself (DRY). Implement MSG on top of S4U instead
[simgrid.git] / src / msg / msg_process.cpp
index cb1dd50..3aa62d6 100644 (file)
@@ -464,7 +464,7 @@ void MSG_process_on_exit(int_f_pvoid_pvoid_t fun, void *data) {
  * If the flag is set to 1, the process will be automatically restarted when its host comes back up.
  */
 XBT_PUBLIC(void) MSG_process_auto_restart_set(msg_process_t process, int auto_restart) {
-  simgrid::simix::kernelImmediate([process, auto_restart]() { process->getImpl()->auto_restart = auto_restart; });
+  process->setAutoRestart(auto_restart);
 }
 /**
  * \ingroup m_process_management