/* Mailboxes in MSG */
-/* Copyright (c) 2008, 2009, 2010. The SimGrid Team.
+/* Copyright (c) 2008-2013. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
/* Try to send it by calling SIMIX network layer */
TRY {
- smx_action_t comm = simcall_comm_isend(mailbox, t_simdata->message_size,
+ smx_action_t comm = NULL; /* MC needs the comm to be set to NULL during the simix call */
+ comm = simcall_comm_isend(mailbox, t_simdata->message_size,
t_simdata->rate, task, sizeof(void *),
NULL, NULL, task, 0);
#ifdef HAVE_TRACING
&& (channel < msg_global->max_channel), "Invalid channel %d",
channel);
- return host->mailboxes[(size_t) channel];
+ return MSG_host_priv(host)->mailboxes[(size_t) channel];
}
#endif