From: Martin Quinson Date: Wed, 19 Jul 2017 21:48:38 +0000 (+0200) Subject: don't repeat yourself (DRY). Implement MSG on top of S4U instead X-Git-Tag: v3_17~357^2~2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/0258e7c7cf1b974a0b6b9544b6e81bae91b67e8e?ds=sidebyside don't repeat yourself (DRY). Implement MSG on top of S4U instead --- diff --git a/src/msg/msg_process.cpp b/src/msg/msg_process.cpp index cb1dd50a9d..3aa62d6716 100644 --- a/src/msg/msg_process.cpp +++ b/src/msg/msg_process.cpp @@ -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