X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/272ccad1b68b6d9c17069f3c934886925bb15b5d..585c03575926272c32a21202ef0552589aafaa51:/src/msg/msg_mailbox.h diff --git a/src/msg/msg_mailbox.h b/src/msg/msg_mailbox.h index c59c17f800..f587002dcc 100644 --- a/src/msg/msg_mailbox.h +++ b/src/msg/msg_mailbox.h @@ -66,6 +66,19 @@ XBT_PUBLIC(msg_mailbox_t) */ XBT_PUBLIC(int) MSG_mailbox_is_empty(msg_mailbox_t mailbox); +/* \brief MSG_mailbox_set_async - set a mailbox as eager + * + * The function MSG_mailbox_set_async sets the mailbox to a permanent receiver mode + * Messages sent to this mailbox will then be sent just after the send is issued, + * without waiting for the corresponding receive. + * + * This call should be done before issuing any receive, and on the receiver's side only + * + * \param alias The alias of the mailbox to modify. + * + */ +XBT_PUBLIC(void) MSG_mailbox_set_async(const char *alias); + /*! \brief MSG_mailbox_get_head - get the task at the head of a mailbox. * * The MSG_mailbox_get_head returns the task at the head of the mailbox. @@ -76,7 +89,7 @@ XBT_PUBLIC(int) MSG_mailbox_is_empty(msg_mailbox_t mailbox); * * \return The task at the head of the mailbox. */ -XBT_PUBLIC(m_task_t) +XBT_PUBLIC(msg_task_t) MSG_mailbox_get_head(msg_mailbox_t mailbox); /*! \brief MSG_mailbox_get_count_host_waiting_tasks - Return the number of tasks @@ -92,7 +105,7 @@ XBT_PUBLIC(m_task_t) */ XBT_PUBLIC(int) MSG_mailbox_get_count_host_waiting_tasks(msg_mailbox_t mailbox, - m_host_t host); + msg_host_t host); #ifdef MSG_USE_DEPRECATED /* \brief MSG_mailbox_get_by_channel - get a mailbox of the specified host from its channel. @@ -109,7 +122,7 @@ MSG_mailbox_get_count_host_waiting_tasks(msg_mailbox_t mailbox, * */ XBT_PUBLIC(msg_mailbox_t) - MSG_mailbox_get_by_channel(m_host_t host, m_channel_t channel); + MSG_mailbox_get_by_channel(msg_host_t host, m_channel_t channel); #endif SG_END_DECL()