3#include "../Memory/MemoryBuffer.h"
4#include "../Platform/Threads.h"
15 using Ptr = std::shared_ptr<Message>;
21 static Ptr allocate(uint32_t
id);
22 static Ptr duplicate(
const Message& src);
25 uint32_t getID()
const {
return identifier; }
28 using Pool = std::vector<Message*>;
30 static Pool messagePool;
32 uint32_t identifier = 0;
38 static void deleteMessage(
Message* msg);
A MessageHub connects to other hubs to form a simple peer-to-peer application-internal networking sys...
Contains all Cogs related functionality.