Signbit MPSCQ
0.5.0
|
#include <mpscq.h>
Public Member Functions | |
MessagePool (size_t allocationGroupSize, std::pmr::memory_resource *memoryResource) | |
Message * | allocate () |
Efficient object pool for messages
Allocates objects in batches, using the passed-in memory resource.
Payload | Is the type of the useful payload processed via the queue |
|
inline |
Constructs a message pool
allocationGroupSize | Specifies how many objects to allocate at once |
memoryResource | Indicates the memory resource backing the allocations |
|
inline |
Allocates a message