/* */ #ifndef SECONDO_BININBOX_H #define SECONDO_BININBOX_H #include #include #include #include #include "Message.h" #include "../typedefs.h" #include namespace distributed3 { class BinInbox { public: BinInbox(); //~Inbox(); no destructor: nothing to destroy // TODO template für Tuple? void pushTuple(const int, const int, char*); std::queue* getSwappedInbox(const int eid, const int slot); /** Destroys the queues associated with eid and slot and clears the inboxes if no queues are left for eid */ void clear(const int eid, const int slot); // besser am // Schluss alles aufräumen? private: //std::queue* getInbox(const int eid, const int slot); // TODO template für Tuple/char? std::map*>> inboxes; // queue auf // heap wg.Speicherplatz? std::map*>> inboxes2; std::map> inboxLocks; }; } #endif //SECONDO_BININBOX_H