WRENCH  1.10
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
S4U_Mailbox.h
1 
11 #ifndef WRENCH_S4U_MAILBOX_H
12 #define WRENCH_S4U_MAILBOX_H
13 
14 
15 #include <string>
16 #include <map>
17 #include <set>
18 
19 #include <simgrid/s4u.hpp>
20 
21 namespace wrench {
22 
23  /***********************/
25  /***********************/
26 
27  class SimulationMessage;
28  class S4U_PendingCommunication;
29 
33  class S4U_Mailbox {
34 
35  public:
36  static std::unique_ptr<SimulationMessage> getMessage(std::string mailbox);
37  static std::unique_ptr<SimulationMessage> getMessage(std::string mailbox, double timeout);
38  static void putMessage(std::string mailbox, SimulationMessage *m);
39  static void dputMessage(std::string mailbox_name, SimulationMessage *msg);
40  static std::shared_ptr<S4U_PendingCommunication> iputMessage(std::string mailbox_name, SimulationMessage *msg);
41  static std::shared_ptr<S4U_PendingCommunication> igetMessage(std::string mailbox_name);
42 // static void clear_dputs();
43 
44  static std::string generateUniqueMailboxName(std::string);
45  static unsigned long generateUniqueSequenceNumber();
46 
47  private:
48 
49 // static std::map<simgrid::s4u::ActorPtr , std::set<simgrid::s4u::CommPtr>> dputs;
50 
51  };
52 
53  /***********************/
55  /***********************/
56 
57 };
58 
59 
60 #endif //WRENCH_S4U_MAILBOX_H
wrench
Definition: Alarm.cpp:20