SimGrid
3.7
Scalable simulation of distributed systems
|
Defines | |
#define | gras_msg_send(sock, name, payload) |
Send the data pointed by payload as a message msgname on the sock. | |
#define | gras_msg_wait(timeout, msgt_want, expeditor, payload) |
Waits for a message to come in over a given socket. | |
Functions | |
void | gras_msg_send_ (xbt_socket_t sock, gras_msgtype_t msgtype, void *payload) |
Send the data pointed by payload as a message of type msgtype to the peer sock. | |
void | gras_msg_wait_ (double timeout, gras_msgtype_t msgt_want, xbt_socket_t *expeditor, void *payload) |
Waits for a message to come in over a given socket. | |
void | gras_msg_handleall (double period) |
Handle all messages arriving within the given period. | |
void | gras_msg_handle (double timeOut) |
Handle an incomming message or timer (or wait up to timeOut seconds) |
#define gras_msg_send | ( | sock, | |
name, | |||
payload | |||
) |
Send the data pointed by payload as a message msgname on the sock.
Using gras_msg_wait() is a bit slower than using gras_msg_wait_() since GRAS has to search for the given msgtype in the hash table.
#define gras_msg_wait | ( | timeout, | |
msgt_want, | |||
expeditor, | |||
payload | |||
) |
Waits for a message to come in over a given socket.
timeout,: | How long should we wait for this message. | |
msgt_want,: | type of awaited msg | |
[out] | expeditor,: | where to create a socket to answer the incomming message |
[out] | payload,: | where to write the payload of the incomming message |
Every message of another type received before the one waited will be queued and used by subsequent call to this function or gras_msg_handle().
Using gras_msg_wait() is a bit slower than using gras_msg_wait_() since GRAS has to search for the given msgtype in the hash table.
void gras_msg_wait_ | ( | double | timeout, |
gras_msgtype_t | msgt_want, | ||
xbt_socket_t * | expeditor, | ||
void * | payload | ||
) |
Waits for a message to come in over a given socket.
timeout,: | How long should we wait for this message. | |
msgt_want,: | type of awaited msg | |
[out] | expeditor,: | where to create a socket to answer the incomming message |
[out] | payload,: | where to write the payload of the incomming message |
Every message of another type received before the one waited will be queued and used by subsequent call to this function or gras_msg_handle().
void gras_msg_handleall | ( | double | period | ) |
Handle all messages arriving within the given period.
period,: | How long to wait for incoming messages (in seconds) |
Messages are dealed with just like gras_msg_handle() would do. The difference is that gras_msg_handle() handles at most one message (or wait up to timeout second when no message arrives) while this function handles any amount of messages, and lasts the given period in any case.
void gras_msg_handle | ( | volatile double | timeOut | ) |
Handle an incomming message or timer (or wait up to timeOut seconds)
timeOut,: | How long to wait for incoming messages (in seconds) |
Any message arriving in the given interval is passed to the callbacks.
Back to the main Simgrid Documentation page |
The version of SimGrid documented here is v3.7. Documentation of other versions can be found in their respective archive files (directory doc/html). |
Generated by ![]() |