36 :
FlowData{flowFilePath, mode, lockMode}
61 _ring = std::make_unique<EventRingBuffer>(
_events.data(), config.eventCount, config.eventPayloadSize);
89 std::unique_ptr<EventRingBuffer>
_ring;
Atomic single-producer event ring storage and snapshot protocol.
std::size_t eventCount() const noexcept
SharedMemorySegment _events
Owner of the single events mapping.
EventRingBuffer & ring() noexcept
EventFlowData(SharedMemoryInstance< Flow > &&flowSegment) noexcept
Take ownership of an existing common flow mapping.
EventRingBuffer const & ring() const noexcept
std::uint64_t oldestIndex() const noexcept
Compute the retained window from the last committed index and capacity.
void openEventBuffer(char const *eventFilePath)
Map the complete ring file and initialize it if newly created.
EventFlowData(char const *flowFilePath, AccessMode mode, LockMode lockMode)
Open or create the common flow mapping before attaching the event ring.
std::unique_ptr< EventRingBuffer > _ring
Non-owning ring view whose lifetime is bounded by _events.
Non-owning single-producer event ring view safe for concurrent snapshot readers.
static void initialize(void *memory, std::uint32_t count, std::uint32_t payloadSize)
Construct headers, empty sequence tags and payload words in a fresh mapping.
static std::size_t bufferSize(std::uint32_t count, std::uint32_t payloadSize)
Validate geometry and compute the complete mapping length.
static std::uint64_t load(std::uint64_t const &value) noexcept
Load a shared 64-bit word with acquire ordering, including from a read-only mapping.
constexpr AccessMode accessMode() const noexcept
constexpr bool created() const noexcept
constexpr FlowData(SharedMemoryInstance< Flow > &&flowSegement) noexcept
constexpr mxlFlowInfo * flowInfo() noexcept
std::size_t size() const noexcept
Returns the total number of writers that are registered in the DomainWatcher.
#define MXL_UNDEFINED_INDEX
mxlEventFlowConfigInfo event
Event queue geometry when common.format is MXL_DATA_FORMAT_EVENT.