MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
mxl::lib::EventHeader Struct Reference

768-byte slot header with layout fields, sequence and metadata on separate 128-byte boundaries. The fixed padding is part of the shared-memory ABI and must not depend on compiler CPU tuning. More...

#include <Flow.hpp>

Public Attributes

std::uint64_t infoWords [sizeof(mxlEventInfo)/sizeof(std::uint64_t)]
 Public metadata accessed through atomic words.
std::uint8_t layoutPadding [128 - 2 *sizeof(std::uint32_t)]
 Explicit padding to the sequence cache line.
std::uint64_t sequence
 Atomic tag: index shifted left one bit, low bit set after publication; EMPTY if unused.
std::uint8_t sequencePadding [128 - sizeof(std::uint64_t)]
 Explicit padding to the metadata cache line.
std::uint32_t size
 Immutable size of EventHeader in bytes.
std::uint32_t version
 Immutable EventRingBuffer storage version.

Detailed Description

768-byte slot header with layout fields, sequence and metadata on separate 128-byte boundaries. The fixed padding is part of the shared-memory ABI and must not depend on compiler CPU tuning.

Definition at line 67 of file Flow.hpp.

Member Data Documentation

◆ infoWords

std::uint64_t mxl::lib::EventHeader::infoWords[sizeof(mxlEventInfo)/sizeof(std::uint64_t)]

Public metadata accessed through atomic words.

Definition at line 80 of file Flow.hpp.

◆ layoutPadding

std::uint8_t mxl::lib::EventHeader::layoutPadding[128 - 2 *sizeof(std::uint32_t)]

Explicit padding to the sequence cache line.

Definition at line 74 of file Flow.hpp.

◆ sequence

std::uint64_t mxl::lib::EventHeader::sequence

Atomic tag: index shifted left one bit, low bit set after publication; EMPTY if unused.

Definition at line 76 of file Flow.hpp.

◆ sequencePadding

std::uint8_t mxl::lib::EventHeader::sequencePadding[128 - sizeof(std::uint64_t)]

Explicit padding to the metadata cache line.

Definition at line 78 of file Flow.hpp.

◆ size

std::uint32_t mxl::lib::EventHeader::size

Immutable size of EventHeader in bytes.

Definition at line 72 of file Flow.hpp.

◆ version

std::uint32_t mxl::lib::EventHeader::version

Immutable EventRingBuffer storage version.

Definition at line 70 of file Flow.hpp.


The documentation for this struct was generated from the following file:
  • lib/internal/include/mxl-internal/Flow.hpp