2#include <boost/interprocess/managed_shared_memory.hpp>
3#include <concurrent/aeron_broadcast_descriptor.h>
4#include <concurrent/aeron_rb.h>
16 boost::interprocess::managed_shared_memory shm;
18 static constexpr auto defaultSegmentName{
"SharedMemory"};
19 static constexpr size_t segmentSize =
size_t{1024} * 1024;
22 std::string segmentName;
24 void deleteSegment()
const;
41 explicit SharedMemory(
bool isOwner,
const std::string &segmentName = defaultSegmentName);
51 boost::interprocess::managed_shared_memory &
get();
boost::interprocess::managed_shared_memory & get()
Definition shared_memory.cpp:27
static constexpr size_t mpscCapacity
Definition shared_memory.hpp:31
static constexpr size_t spmcCapacity
Definition shared_memory.hpp:29
SharedMemory(bool isOwner, const std::string &segmentName=defaultSegmentName)
Definition shared_memory.cpp:12
static constexpr auto mpscName
Definition shared_memory.hpp:28
~SharedMemory()
Definition shared_memory.cpp:34
static constexpr auto spmcName
Definition shared_memory.hpp:27
static constexpr size_t mpscTotalObjectSize
Definition shared_memory.hpp:32
static constexpr size_t spmcTotalObjectSize
Definition shared_memory.hpp:30