X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/271654d06dedba35eab7c26069a42bac89b0cee4..2955afe732becd712d718abaf6806aef3c0998a6:/communicator.h?ds=inline diff --git a/communicator.h b/communicator.h index b79210c..c123b1b 100644 --- a/communicator.h +++ b/communicator.h @@ -4,10 +4,11 @@ #define COMMUNICATOR_H #include -#include +#include #include "hostdata.h" #include "messages.h" #include "msg_thread.h" +#include "simgrid_features.h" class communicator { public: @@ -37,10 +38,10 @@ public: // Try to get a message. Returns true on success. // Parameter "timeout" may be 0 for non-blocking operation, -1 for // infinite waiting, or any positive timeout. - bool ctrl_recv(message*& msg, m_host_t& from, double timeout) { + bool ctrl_recv(message*& msg, msg_host_t& from, double timeout) { return ctrl_received.pop(msg, from, timeout); } - bool data_recv(message*& msg, m_host_t& from, double timeout) { + bool data_recv(message*& msg, msg_host_t& from, double timeout) { return data_received.pop(msg, from, timeout); }