X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f365d61a634d854a3244979c0524de3cf3a74f72..6b188a3ca7fe91cf125a08229fb4fe51eee26e6d:/src/msg/msg_mailbox.c diff --git a/src/msg/msg_mailbox.c b/src/msg/msg_mailbox.c index e25051c3fc..b537c0458c 100644 --- a/src/msg/msg_mailbox.c +++ b/src/msg/msg_mailbox.c @@ -153,21 +153,16 @@ MSG_mailbox_put_with_timeout(msg_mailbox_t mailbox, m_task_t task, /* Try to send it by calling SIMIX network layer */ TRY { -#ifdef HAVE_TRACING - if (TRACE_is_enabled()) { smx_action_t comm = SIMIX_req_comm_isend(mailbox, t_simdata->message_size, t_simdata->rate, task, sizeof(void *), - NULL, NULL, 0); - SIMIX_req_set_category(comm, task->category); - SIMIX_req_comm_wait(comm, timeout); - } else { -#endif - SIMIX_req_comm_send(mailbox, t_simdata->message_size, - t_simdata->rate, task, sizeof(void*), - NULL, NULL, timeout); + NULL, NULL, NULL, 0); #ifdef HAVE_TRACING + if (TRACE_is_enabled()) { + SIMIX_req_set_category(comm, task->category); } #endif + t_simdata->comm = comm; + SIMIX_req_comm_wait(comm, timeout); } CATCH(e) { @@ -190,6 +185,7 @@ MSG_mailbox_put_with_timeout(msg_mailbox_t mailbox, m_task_t task, t_simdata->isused = 0; } + p_simdata->waiting_task = NULL; #ifdef HAVE_TRACING if (call_end)