1 // Asynchronous communicator
9 #include <xbt/sysdep.h>
17 void send_info(const neighbor& dest, double amount);
18 void send_credit(const neighbor& dest, double amount);
19 void send_load(const neighbor& dest, double amount);
21 bool recv_info(double& amount, m_host_t& from);
22 bool recv_credit(double& amount, m_host_t& from);
23 bool recv_load(double& amount, m_host_t& from);
28 enum message_type { INFO_MSG, CREDIT_MSG };
31 // List of pending send communications
32 std::list<msg_comm_t> sent_comm;
34 // Control channel for receiving
39 // Data channel for receiving
44 bool recv_ctrl(message_type type, double& amount, m_host_t& from);
45 void send(const char* dest, m_task_t task);
49 #endif // !COMMUNICATOR_H