SimGrid
3.7
Scalable simulation of distributed systems
|
Defining messages and callbacks, and exchanging messages. More...
Modules | |
Message declaration and retrival | |
Callback declaration and use | |
Message exchange | |
RPC specific functions | |
Message exchange (advanced interface) |
Defining messages and callbacks, and exchanging messages.
There is two way to receive messages in GRAS. The first one is to register a given function as callback to a given type of messages (see gras_cb_register and associated section). But you can also explicitely wait for a given message with the gras_msg_wait function.
Usually, both ways are not intended to be mixed of a given type of messages. But if you do so, it shouldn't trigger any issue. If the message arrives when gras_msg_wait is blocked, then it will be routed to it. If it arrives when before or after gras_msg_wait, it will be passed to the callback.
For an example of use, please refer to Ping-Pong. The archive contains much more examples, but their are not properly integrated into this documentation yet.
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 ![]() |