X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/892e36c1af3105e5f548a4ef8b9f777b95d47fc2..32f6b88b0eba7de3a849bdc92aaeb938af8bb735:/messages.h?ds=inline diff --git a/messages.h b/messages.h index 34e9248..605b3be 100644 --- a/messages.h +++ b/messages.h @@ -14,6 +14,7 @@ public: message_type get_type() const { return type; } double get_amount() const { return amount; } + double get_size() const; std::string to_string(); @@ -27,7 +28,7 @@ public: // Push a message on queue void push(m_task_t task); - // Try to get a message. Returns true on success. + // Try to pop a message. Returns true on success. // Parameter "timeout" may be 0 for non-blocking operation, -1 for // infinite waiting, or any positive timeout. bool pop(message*& msg, m_host_t& from, double timeout);