- /* If the receiver end didn't decremented the refcount so far then do it */
- if (t_simdata->refcount > 1)
- t_simdata->refcount--;
-
- MSG_RETURN(ret);
+ p_simdata->waiting_task = NULL;
+#ifdef HAVE_TRACING
+ if (call_end)
+ TRACE_msg_task_put_end();
+#endif
+ MSG_RETURN(ret);
+}
+
+#ifdef MSG_USE_DEPRECATED
+msg_mailbox_t MSG_mailbox_get_by_channel(msg_host_t host,
+ m_channel_t channel)
+{
+ XBT_WARN("DEPRECATED! Now use MSG_mailbox_get_by_alias");
+ xbt_assert((host != NULL), "Invalid host");
+ xbt_assert((channel >= 0)
+ && (channel < msg_global->max_channel), "Invalid channel %d",
+ channel);
+
+ return host->mailboxes[(size_t) channel];