X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ee63a4fbf0d79259eb0e1e7c5b7053f4b99c7a75..53b9ff1b6972dffeabd543a09c89170663c30ad1:/src/msg/msg_process.cpp diff --git a/src/msg/msg_process.cpp b/src/msg/msg_process.cpp index 5ce8704be2..7ddd2c42ed 100644 --- a/src/msg/msg_process.cpp +++ b/src/msg/msg_process.cpp @@ -34,8 +34,8 @@ void MSG_process_cleanup_from_SIMIX(smx_process_t smx_proc) // get the MSG process from the SIMIX process if (smx_proc == SIMIX_process_self()) { /* avoid a SIMIX request if this function is called by the process itself */ - msg_proc = (simdata_process_t) SIMIX_process_self_get_data(smx_proc); - SIMIX_process_self_set_data(smx_proc, NULL); + msg_proc = (simdata_process_t) SIMIX_process_self_get_data(); + SIMIX_process_self_set_data(NULL); } else { msg_proc = (simdata_process_t) simcall_process_get_data(smx_proc); simcall_process_set_data(smx_proc, NULL); @@ -294,7 +294,7 @@ msg_host_t MSG_process_get_host(msg_process_t process) { simdata_process_t simdata; if (process == NULL) { - simdata = (simdata_process_t) SIMIX_process_self_get_data(SIMIX_process_self()); + simdata = (simdata_process_t) SIMIX_process_self_get_data(); } else { simdata = (simdata_process_t) simcall_process_get_data(process);