git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5062
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
XBT_PUBLIC(MSG_error_t) MSG_task_get(m_task_t * task, m_channel_t channel);
XBT_PUBLIC(MSG_error_t) MSG_task_get_with_time_out(m_task_t * task, m_channel_t channel,
XBT_PUBLIC(MSG_error_t) MSG_task_get(m_task_t * task, m_channel_t channel);
XBT_PUBLIC(MSG_error_t) MSG_task_get_with_time_out(m_task_t * task, m_channel_t channel,
XBT_PUBLIC(MSG_error_t) MSG_task_get_from_host(m_task_t * task, int channel,
XBT_PUBLIC(MSG_error_t) MSG_task_get_from_host(m_task_t * task, int channel,
+ m_host_t host);
+XBT_PUBLIC(MSG_error_t) MSG_task_get_ext(m_task_t * task, int channel,
+ double max_duration, m_host_t host);
+
+
XBT_PUBLIC(MSG_error_t) MSG_task_put(m_task_t task, m_host_t dest,
m_channel_t channel);
XBT_PUBLIC(MSG_error_t) MSG_task_put_bounded(m_task_t task,
XBT_PUBLIC(MSG_error_t) MSG_task_put(m_task_t task, m_host_t dest,
m_channel_t channel);
XBT_PUBLIC(MSG_error_t) MSG_task_put_bounded(m_task_t task,
* by an agent for handling some task.
*/
* by an agent for handling some task.
*/
-static MSG_error_t __MSG_task_get_with_time_out_from_host(m_task_t * task,
- m_channel_t
- channel,
- double
- max_duration,
- m_host_t host)
+MSG_error_t MSG_task_get_ext(m_task_t * task,
+ m_channel_t channel,
+ double max_duration,
+ m_host_t host)
{
m_process_t process = MSG_process_self();
{
m_process_t process = MSG_process_self();
m_channel_t channel,
double max_duration)
{
m_channel_t channel,
double max_duration)
{
- return __MSG_task_get_with_time_out_from_host(task, channel,
- max_duration, NULL);
+ return MSG_task_get_ext(task, channel, max_duration, NULL);
}
/** \ingroup msg_gos_functions
}
/** \ingroup msg_gos_functions
MSG_error_t MSG_task_get_from_host(m_task_t * task, int channel,
m_host_t host)
{
MSG_error_t MSG_task_get_from_host(m_task_t * task, int channel,
m_host_t host)
{
- return __MSG_task_get_with_time_out_from_host(task, channel, -1, host);
+ return MSG_task_get_ext(task, channel, -1, host);
}
/** \ingroup msg_gos_functions
}
/** \ingroup msg_gos_functions
/** \ingroup msg_gos_functions
* \brief Wait for at most \a max_duration second for a task reception
/** \ingroup msg_gos_functions
* \brief Wait for at most \a max_duration second for a task reception
- on \a channel. *\a PID is updated with the PID of the first process
- that triggered this event if any.
+ on \a channel.
+
+ * \a PID is updated with the PID of the first process that triggered this event if any.
*
* It takes three parameters:
* \param channel the channel on which the agent should be
*
* It takes three parameters:
* \param channel the channel on which the agent should be