- enum message_type { INFO, CREDIT, LOAD, CLOSE };
+ enum message_type { INFO, CREDIT, LOAD, CTRL_CLOSE, DATA_CLOSE };
message(message_type t, double a): type(t), amount(a) { }
message_type get_type() const { return type; }
double get_amount() const { return amount; }
message(message_type t, double a): type(t), amount(a) { }
message_type get_type() const { return type; }
double get_amount() const { return amount; }
// List of pending send communications
std::list<msg_comm_t> sent_comm;
// Control channel for receiving
// List of pending send communications
std::list<msg_comm_t> sent_comm;
// Control channel for receiving
- const char* get_ctrl_mbox() const { return ctrl_mbox.c_str(); }
- const char* get_data_mbox() const { return data_mbox.c_str(); }
- void flush_sent();
+ static void comm_push_in_dynar(xbt_dynar_t dynar, msg_comm_t comm);
+ static bool comm_test_n_destroy(msg_comm_t comm);