WRENCH
1.11
Cyberinfrastructure Simulation Workbench
|
Overview | Installation | Getting Started | WRENCH 101 | WRENCH 102 |
Wrappers around S4U's communication methods. More...
#include <S4U_Mailbox.h>
Static Public Member Functions | |
static void | createMailboxPool (unsigned long num_mailboxes) |
Create the pool of mailboxes to use. More... | |
static void | dputMessage (simgrid::s4u::Mailbox *mailbox, SimulationMessage *msg) |
Asynchronously send a message to a mailbox in a "fire and forget" fashion. More... | |
static simgrid::s4u::Mailbox * | generateUniqueMailbox (std::string prefix) |
Generate a unique (non-temporary) mailbox. More... | |
static unsigned long | generateUniqueSequenceNumber () |
Generate a unique sequence number. More... | |
static std::unique_ptr< SimulationMessage > | getMessage (simgrid::s4u::Mailbox *mailbox) |
Synchronously receive a message from a mailbox. More... | |
static std::unique_ptr< SimulationMessage > | getMessage (simgrid::s4u::Mailbox *mailbox, double timeout) |
Synchronously receive a message from a mailbox, with a timeout. More... | |
static simgrid::s4u::Mailbox * | getTemporaryMailbox () |
Get a temporary mailbox. More... | |
static std::shared_ptr< S4U_PendingCommunication > | igetMessage (simgrid::s4u::Mailbox *mailbox) |
Asynchronously receive a message from a mailbox. More... | |
static std::shared_ptr< S4U_PendingCommunication > | iputMessage (simgrid::s4u::Mailbox *mailbox, SimulationMessage *msg) |
Asynchronously send a message to a mailbox. More... | |
static void | putMessage (simgrid::s4u::Mailbox *mailbox, SimulationMessage *m) |
Synchronously send a message to a mailbox. More... | |
static void | retireTemporaryMailbox (simgrid::s4u::Mailbox *mailbox) |
Retire a temporary mailbox. More... | |
Static Public Attributes | |
static unsigned long | mailbox_pool_size |
Wrappers around S4U's communication methods.
|
static |
Create the pool of mailboxes to use.
num_mailboxes | numb mailboxes in pool |
|
static |
Asynchronously send a message to a mailbox in a "fire and forget" fashion.
mailbox | the mailbox |
msg | the SimulationMessage |
|
static |
Generate a unique (non-temporary) mailbox.
prefix | mailbox name prefix |
|
static |
Generate a unique sequence number.
|
static |
Synchronously receive a message from a mailbox.
mailbox | the mailbox |
std::shared_ptr<NetworkError> |
|
static |
Synchronously receive a message from a mailbox, with a timeout.
mailbox | the mailbox |
timeout | a timeout value in seconds (<0 means never timeout) |
std::shared_ptr<NetworkError> |
|
static |
Get a temporary mailbox.
|
static |
Asynchronously receive a message from a mailbox.
mailbox | the mailbox |
std::shared_ptr<NetworkError> |
|
static |
Asynchronously send a message to a mailbox.
mailbox | the mailbox |
msg | the SimulationMessage |
std::shared_ptr<NetworkError> |
|
static |
Synchronously send a message to a mailbox.
mailbox | the mailbox |
msg | the SimulationMessage |
std::shared_ptr<NetworkError> |
|
static |
Retire a temporary mailbox.
mailbox | the mailbox to retire |