WRENCH
1.10
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 | dputMessage (std::string mailbox_name, SimulationMessage *msg) |
Asynchronously send a message to a mailbox in a "fire and forget" fashion. More... | |
static std::string | generateUniqueMailboxName (std::string) |
Generate a unique mailbox name given a prefix (this method simply appends an increasing sequence number to the prefix) More... | |
static unsigned long | generateUniqueSequenceNumber () |
Generate a unique sequence number. More... | |
static std::unique_ptr< SimulationMessage > | getMessage (std::string mailbox) |
Synchronously receive a message from a mailbox. More... | |
static std::unique_ptr< SimulationMessage > | getMessage (std::string mailbox, double timeout) |
Synchronously receive a message from a mailbox, with a timeout. More... | |
static std::shared_ptr< S4U_PendingCommunication > | igetMessage (std::string mailbox_name) |
Asynchronously receive a message from a mailbox. More... | |
static std::shared_ptr< S4U_PendingCommunication > | iputMessage (std::string mailbox_name, SimulationMessage *msg) |
Asynchronously send a message to a mailbox. More... | |
static void | putMessage (std::string mailbox, SimulationMessage *m) |
Synchronously send a message to a mailbox. More... | |
Wrappers around S4U's communication methods.
|
static |
Asynchronously send a message to a mailbox in a "fire and forget" fashion.
mailbox_name | the mailbox name |
msg | the SimulationMessage |
|
static |
Generate a unique mailbox name given a prefix (this method simply appends an increasing sequence number to the prefix)
prefix | a prefix for the mailbox name |
|
static |
Generate a unique sequence number.
|
static |
Synchronously receive a message from a mailbox.
mailbox_name | the mailbox name |
std::shared_ptr<NetworkError> |
|
static |
Synchronously receive a message from a mailbox, with a timeout.
mailbox_name | the mailbox name |
timeout | a timeout value in seconds (<0 means never timeout) |
std::shared_ptr<NetworkError> |
|
static |
Asynchronously receive a message from a mailbox.
mailbox_name | the mailbox name |
std::shared_ptr<NetworkError> |
|
static |
Asynchronously send a message to a mailbox.
mailbox_name | the mailbox name |
msg | the SimulationMessage |
std::shared_ptr<NetworkError> |
|
static |
Synchronously send a message to a mailbox.
mailbox_name | the mailbox name |
msg | the SimulationMessage |
std::shared_ptr<NetworkError> |