Skip to content

API · fair::mq

ChannelResourceclass

#include <MemoryResources.h>fairmq/MemoryResources.h:54GitHub ↗
Inherits from
fair::mq::MemoryResource

This is the allocator that interfaces to FairMQ memory management. All allocations are delegated to FairMQ so standard (e.g. STL) containers can construct their stuff in memory regions appropriate for the data channel configuration.

Functions

virtual MessagePtr getMessage(void* p) override

return the message containing data associated with the pointer (to start of buffer), e.g. pointer returned by std::vector::data() return nullptr if returning a message does not make sense!

Protected functions

void* do_allocate(std::size_t bytes, std::size_t alignment) override

Memory allocators and interfaces related to managing memory via the trasport layer.

Protected data members