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

#include <FlowState.hpp>

Public Member Functions

constexpr FlowState () noexcept

Public Attributes

ino_t inode
std::uint32_t syncCounter

Detailed Description

Internal data relevant to the current state of an active flow. This data is shared among media functions for inter process communication and synchronization.

Definition at line 16 of file FlowState.hpp.

Constructor & Destructor Documentation

◆ FlowState()

mxl::lib::FlowState::FlowState ( )
constexprnoexcept

Default constructor that value initializes all members.

Definition at line 43 of file FlowState.hpp.

44 : inode{}
45 , syncCounter{}
46 {}
std::uint32_t syncCounter
Definition FlowState.hpp:31

Member Data Documentation

◆ inode

ino_t mxl::lib::FlowState::inode

The flow data inode. Used to detect if the flow was recreated and the current in-memory mapping of the flow has become stale as a result.

Definition at line 23 of file FlowState.hpp.

◆ syncCounter

std::uint32_t mxl::lib::FlowState::syncCounter

32 bit word used synchronization between a writer and multiple readers. This value can be used by futexes. When a FlowWriter commits some data (a grain, a slice, etc) it will increment this value and then wake all FlowReaders waiting on this memory address.

Definition at line 31 of file FlowState.hpp.


The documentation for this struct was generated from the following file: