11 #ifndef WRENCH_S4U_PENDINGCOMMUNICATION_H
12 #define WRENCH_S4U_PENDINGCOMMUNICATION_H
16 #include <simgrid/s4u/Comm.hpp>
17 #include <wrench/util/MessageManager.h>
23 class SimulationMessage;
49 std::unique_ptr<SimulationMessage>
wait();
52 std::vector<std::shared_ptr<S4U_PendingCommunication>> pending_comms,
56 std::vector<S4U_PendingCommunication*> pending_comms,
78 #endif //WRENCH_S4U_PENDINGCOMMUNICATION_H
simgrid::s4u::CommPtr comm_ptr
The SimGrid communication handle.
Definition: S4U_PendingCommunication.h:62
std::unique_ptr< SimulationMessage > simulation_message
The message.
Definition: S4U_PendingCommunication.h:64
OperationType operation_type
The operation type.
Definition: S4U_PendingCommunication.h:68
This is a simple wrapper class around S4U asynchronous communication checking methods.
Definition: S4U_PendingCommunication.h:30
static unsigned long waitForSomethingToHappen(std::vector< std::shared_ptr< S4U_PendingCommunication >> pending_comms, double timeout)
Wait for any pending communication completion.
Definition: S4U_PendingCommunication.cpp:61
OperationType
The communication operation's type.
Definition: S4U_PendingCommunication.h:36
std::string mailbox_name
The mailbox name.
Definition: S4U_PendingCommunication.h:66
std::unique_ptr< SimulationMessage > wait()
Wait for the pending communication to complete.
Definition: S4U_PendingCommunication.cpp:34
S4U_PendingCommunication(std::string mailbox_name, OperationType operation_type)
Constructor.
Definition: S4U_PendingCommunication.h:47