X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1c413ffb9aa79a5a693433a5631595fe15581537..44129f5978ea81e283d0312fe3347e0bd5dea61c:/src/msg/msg_process.cpp diff --git a/src/msg/msg_process.cpp b/src/msg/msg_process.cpp index cb1dd50a9d..e1ee3c74b2 100644 --- a/src/msg/msg_process.cpp +++ b/src/msg/msg_process.cpp @@ -189,7 +189,7 @@ void MSG_process_detach() */ void MSG_process_kill(msg_process_t process) { - simcall_process_kill(process->getImpl()); + process->kill(); } /** @@ -464,14 +464,15 @@ 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 * \brief Restarts a process from the beginning. */ XBT_PUBLIC(msg_process_t) MSG_process_restart(msg_process_t process) { - return simcall_process_restart(process->getImpl())->ciface(); + return simgrid::simix::kernelImmediate( + [process]() { return process->getImpl()->restart(process->getImpl())->ciface(); }); } /** @ingroup m_process_management