X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c1781804f5ce17958fcede075ab7dc1bd1e29f8b..b0954ccfc711fbfd5113ba54779d02e9b5450028:/src/msg/msg_mailbox.c diff --git a/src/msg/msg_mailbox.c b/src/msg/msg_mailbox.c index 3f015f1e24..bedccad273 100644 --- a/src/msg/msg_mailbox.c +++ b/src/msg/msg_mailbox.c @@ -87,7 +87,7 @@ MSG_mailbox_get_task_ext(msg_mailbox_t mailbox, m_task_t * task, if (*task) XBT_CRITICAL - ("MSG_task_get() was asked to write in a non empty task struct."); + ("MSG_task_receive() was asked to write in a non empty task struct."); /* Try to receive it by calling SIMIX network layer */ TRY { @@ -131,14 +131,10 @@ MSG_mailbox_put_with_timeout(msg_mailbox_t mailbox, m_task_t task, simdata_task_t t_simdata = NULL; m_process_t process = MSG_process_self(); simdata_process_t p_simdata = SIMIX_process_self_get_data(); -#ifdef HAVE_TRACING - volatile smx_action_t comm = NULL; - int call_end = 0; -#endif CHECK_HOST(); #ifdef HAVE_TRACING - call_end = TRACE_msg_task_put_start(task); //must be after CHECK_HOST() + int call_end = TRACE_msg_task_put_start(task); //must be after CHECK_HOST() #endif /* Prepare the task to send */ @@ -159,10 +155,9 @@ MSG_mailbox_put_with_timeout(msg_mailbox_t mailbox, m_task_t task, TRY { #ifdef HAVE_TRACING if (TRACE_is_enabled()) { - comm = SIMIX_req_comm_isend(mailbox, t_simdata->message_size, + smx_action_t comm = SIMIX_req_comm_isend(mailbox, t_simdata->message_size, t_simdata->rate, task, sizeof(void *), NULL, NULL, 0); - t_simdata->comm = comm; SIMIX_req_set_category(comm, task->category); SIMIX_req_comm_wait(comm, timeout); } else {