SimGrid  3.8.1
Scalable Simulation of Distributed Systems - Reference Manual
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Mailbox Management Functions

This section describes the mailbox structure of MSG (msg_mailbox_t) and the functions for managing it. More...

Functions

msg_error_t MSG_mailbox_get_task_ext (msg_mailbox_t mailbox, msg_task_t *task, msg_host_t host, double timeout)
 Get a task from a mailbox on a given host.

Detailed Description

This section describes the mailbox structure of MSG (msg_mailbox_t) and the functions for managing it.

Function Documentation

msg_error_t MSG_mailbox_get_task_ext ( msg_mailbox_t  mailbox,
msg_task_t task,
msg_host_t  host,
double  timeout 
)

Get a task from a mailbox on a given host.

Parameters
mailboxThe mailbox where the task was sent
taska memory location for storing a msg_task_t.
hosta msg_host_t host from where the task was sent
timeouta timeout
Returns
Returns MSG_OK if the task was successfully received, MSG_HOST_FAILURE, or MSG_TRANSFER_FAILURE otherwise.