X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/271654d06dedba35eab7c26069a42bac89b0cee4..3634a92de5281a6b19ca03b49b21dad853f386b3:/communicator.h diff --git a/communicator.h b/communicator.h index b79210c..8f3f6bf 100644 --- a/communicator.h +++ b/communicator.h @@ -8,6 +8,7 @@ #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); }