X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/0e9987fcef822119e3218d14328eb39977525662..c87e01d1a48d08773380367ef6c547a38a019061:/messages.h?ds=sidebyside diff --git a/messages.h b/messages.h index 70d675d..8de464a 100644 --- a/messages.h +++ b/messages.h @@ -5,6 +5,7 @@ #include #include #include "synchro.h" +#include "sync_queue.h" class message { public: @@ -14,6 +15,7 @@ public: message_type get_type() const { return type; } double get_amount() const { return amount; } + double get_size() const; std::string to_string(); @@ -38,7 +40,7 @@ public: private: mutex_t mutex; condition_t cond; - std::queue queue; + sync_queue queue; }; #endif // !MESSAGES_H