Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
SIMIX_process_self_{set,get}_data can retrieve the self process by themselves
[simgrid.git] / src / msg / msg_mailbox.cpp
index 74d330d..cb67a3f 100644 (file)
@@ -154,14 +154,14 @@ msg_error_t MSG_mailbox_put_with_timeout(msg_mailbox_t mailbox, msg_task_t task,
   msg_error_t ret = MSG_OK;
   simdata_task_t t_simdata = NULL;
   msg_process_t process = MSG_process_self();
-  simdata_process_t p_simdata = (simdata_process_t) SIMIX_process_self_get_data(process);
+  simdata_process_t p_simdata = (simdata_process_t) SIMIX_process_self_get_data();
 
   int call_end = TRACE_msg_task_put_start(task);    //must be after CHECK_HOST()
 
   /* Prepare the task to send */
   t_simdata = task->simdata;
   t_simdata->sender = process;
-  t_simdata->source = ((simdata_process_t) SIMIX_process_self_get_data(process))->m_host;
+  t_simdata->source = ((simdata_process_t) SIMIX_process_self_get_data())->m_host;
 
   if (t_simdata->isused != 0) {
     if (msg_global->debug_multiple_use){