|
MXL : Media eXchange Layer
MXL
|
Namespaces | |
| namespace | detail |
| namespace | fabrics |
| namespace | this_thread |
Classes | |
| class | ContinuousFlowData |
| class | ContinuousFlowReader |
| class | ContinuousFlowWriter |
| class | Deferred |
| Helper class that is created by a call to. More... | |
| class | DiscreteFlowData |
| class | DiscreteFlowReader |
| class | DiscreteFlowWriter |
| struct | DomainWatcherRecord |
| Entry stored in the unordered_maps. More... | |
| struct | Duration |
| struct | Event |
| Fixed part of an event slot; its payload follows immediately in the mapping. More... | |
| class | EventFlowData |
| Own the common flow mapping, single event ring mapping and ring view. More... | |
| class | EventFlowReader |
| Backend contract for reading complete event entries or fragments in queue order. Each reader has one owning thread; concurrent consumers must use independent readers. More... | |
| class | EventFlowWriter |
| Backend contract for a single event producer with private write staging. Callers guarantee one writer per flow across all instances and processes, and serialize the complete open/edit/commit-or-cancel transaction. More... | |
| struct | EventHeader |
| 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... | |
| class | EventRingBuffer |
| Non-owning single-producer event ring view safe for concurrent snapshot readers. More... | |
| struct | EventRingHeader |
| Immutable 4 KiB geometry header at the start of the single event ring file. More... | |
| struct | Flow |
| class | FlowData |
| class | FlowIoFactory |
| class | FlowManager |
| class | FlowOptionsParser |
| class | FlowParser |
| class | FlowReader |
| class | FlowReaderFactory |
| struct | FlowState |
| class | FlowSynchronizationGroup |
| class | FlowWriter |
| class | FlowWriterFactory |
| struct | Grain |
| struct | GrainHeader |
| class | Instance |
| struct | JsonLimits |
| Limits applied by parseJson(). More... | |
| class | PosixContinuousFlowReader |
| class | PosixContinuousFlowWriter |
| class | PosixDiscreteFlowReader |
| class | PosixDiscreteFlowWriter |
| class | PosixEventFlowReader |
| POSIX event consumer with a single-thread cursor and an owned payload snapshot. More... | |
| class | PosixEventFlowWriter |
| POSIX single-producer writer with private staging and monotonic timestamps. The caller guarantees one writer per flow and serializes transactions; readers may run concurrently. More... | |
| struct | PosixFlowIoFactory |
| class | SharedMemoryBase |
| struct | SharedMemoryInstance |
| struct | SharedMemorySegment |
| struct | Timepoint |
Enumerations | |
| enum class | AccessMode { READ_ONLY , READ_WRITE , CREATE_READ_WRITE } |
| enum class | Clock { Monotonic , Realtime , TAI , ProcessCPUTime , ThreadCPUTime } |
| enum class | LockMode { Exclusive , Shared , None } |
Functions | |
| void | addFlow (FlowWriter *writer, uuids::uuid id) |
| constexpr Duration | asDuration (std::timespec const &duration) noexcept |
| constexpr Timepoint | asTimepoint (std::timespec const &timepoint) noexcept |
| constexpr std::timespec | asTimeSpec (Duration duration) noexcept |
| constexpr std::timespec | asTimeSpec (Timepoint timepoint) noexcept |
| std::size_t | count (uuids::uuid id) const noexcept |
| Returns the number of writers registered for flow id 'id'. | |
| Timepoint | currentTime (Clock clock) noexcept |
| Timepoint | currentTimeUTC () noexcept |
| template<typename F> | |
| constexpr Deferred< F > | defer (F &&f) noexcept |
| DomainWatcher (std::filesystem::path const &in_domain) | |
| template<typename To, typename From> | |
| std::unique_ptr< To > | dynamic_pointer_cast (std::unique_ptr< From > &&source) noexcept |
| constexpr Duration | fromMicroSeconds (double duration) noexcept |
| constexpr Duration | fromMilliSeconds (double duration) noexcept |
| constexpr Duration | fromSeconds (double duration) noexcept |
| std::uint32_t | get10BitAlphaLineLength (std::size_t width) |
| std::uint32_t | getV210LineLength (std::size_t width) |
| if (lockMode !=LockMode::None &&mode !=AccessMode::READ_ONLY) | |
| if (struct stat statBuf;::fstat(_fd, &statBuf) !=-1) | |
| constexpr Timepoint | indexToTimestamp (mxlRational const &editRate, std::uint64_t index) noexcept |
| constexpr double | inMicroSeconds (Duration duration) noexcept |
| constexpr double | inMilliSeconds (Duration duration) noexcept |
| constexpr double | inNanoSeconds (Duration duration) noexcept |
| constexpr double | inSeconds (Duration duration) noexcept |
| template<std::integral T> | |
| T | jsonStringToInteger (picojson::value const &value, std::string_view name) |
| template<std::integral T> | |
| T | jsonToInteger (picojson::value const &value, std::string_view name) |
| std::filesystem::path | makeChannelDataFilePath (std::filesystem::path const &domain, std::string const &uuid) |
| std::filesystem::path | makeChannelDataFilePath (std::filesystem::path const &flowDirectory) |
| std::filesystem::path | makeDomainOptionsFilePath (std::filesystem::path const &domain) |
| std::filesystem::path | makeEventDataFilePath (std::filesystem::path const &flowDirectory) |
| Locate an event ring file within its flow directory. | |
| std::filesystem::path | makeFlowAccessFilePath (std::filesystem::path const &domain, std::string const &uuid) |
| std::filesystem::path | makeFlowAccessFilePath (std::filesystem::path const &flowDirectory) |
| std::filesystem::path | makeFlowDataFilePath (std::filesystem::path const &domain, std::string const &uuid) |
| std::filesystem::path | makeFlowDataFilePath (std::filesystem::path const &flowDirectory) |
| std::filesystem::path | makeFlowDescriptorFilePath (std::filesystem::path const &domain, std::string const &uuid) |
| std::filesystem::path | makeFlowDescriptorFilePath (std::filesystem::path const &flowDirectory) |
| std::filesystem::path | makeFlowDirectoryName (std::filesystem::path const &domain, std::string const &uuid) |
| std::filesystem::path | makeGrainDataFilePath (std::filesystem::path const &domain, std::string const &uuid, unsigned int index) |
| std::filesystem::path | makeGrainDataFilePath (std::filesystem::path const &grainDirectory, unsigned int index) |
| std::filesystem::path | makeGrainDirectoryName (std::filesystem::path const &domain, std::string const &uuid) |
| std::filesystem::path | makeGrainDirectoryName (std::filesystem::path const &flowDirectory) |
| std::filesystem::path | makelowAccessFilePath (std::filesystem::path const &domain, std::string const &uuid) |
| constexpr bool | operator!= (Duration lhs, Duration rhs) noexcept |
| constexpr bool | operator!= (Timepoint lhs, Timepoint rhs) noexcept |
| constexpr Duration | operator* (Duration lhs, int rhs) noexcept |
| constexpr Duration | operator* (int lhs, Duration rhs) noexcept |
| constexpr Duration | operator+ (Duration lhs, Duration rhs) noexcept |
| constexpr Timepoint | operator+ (Timepoint lhs, Duration rhs) noexcept |
| constexpr Duration | operator- (Duration lhs, Duration rhs) noexcept |
| constexpr Timepoint | operator- (Timepoint lhs, Duration rhs) noexcept |
| constexpr Duration | operator- (Timepoint lhs, Timepoint rhs) noexcept |
| constexpr Duration | operator/ (Duration lhs, int rhs) noexcept |
| constexpr bool | operator< (Duration lhs, Duration rhs) noexcept |
| constexpr bool | operator< (Timepoint lhs, Timepoint rhs) noexcept |
| std::ostream & | operator<< (std::ostream &os, Grain const &obj) |
| constexpr bool | operator<= (Duration lhs, Duration rhs) noexcept |
| constexpr bool | operator<= (Timepoint lhs, Timepoint rhs) noexcept |
| constexpr bool | operator== (Duration lhs, Duration rhs) noexcept |
| constexpr bool | operator== (Timepoint lhs, Timepoint rhs) noexcept |
| constexpr bool | operator> (Duration lhs, Duration rhs) noexcept |
| constexpr bool | operator> (Timepoint lhs, Timepoint rhs) noexcept |
| constexpr bool | operator>= (Duration lhs, Duration rhs) noexcept |
| constexpr bool | operator>= (Timepoint lhs, Timepoint rhs) noexcept |
| std::string | parseJson (picojson::value &out, std::string_view text, JsonLimits const &limits={}) |
| void | processEvents () |
| void | removeFlow (FlowWriter *writer, uuids::uuid id) |
| std::size_t | size () const noexcept |
| Returns the total number of writers that are registered in the DomainWatcher. | |
| void | stop () |
| template<std::integral T> | |
| T | stringToInteger (std::string_view text, std::string_view name) |
| constexpr void | swap (Duration &lhs, Duration &rhs) noexcept |
| template<typename T> | |
| constexpr void | swap (SharedMemoryInstance< T > &lhs, SharedMemoryInstance< T > &rhs) noexcept |
| constexpr void | swap (SharedMemorySegment &lhs, SharedMemorySegment &rhs) noexcept |
| constexpr void | swap (Timepoint &lhs, Timepoint &rhs) noexcept |
| constexpr std::uint64_t | timestampToIndex (mxlRational const &editRate, Timepoint timestamp) noexcept |
| FlowReader * | to_FlowReader (mxlFlowReader reader) noexcept |
| Utility function to convert from a C mxlFlowReader handle to a C++ FlowReader instance. | |
| FlowSynchronizationGroup * | to_FlowSynchronizationGroup (mxlFlowSynchronizationGroup group) noexcept |
| Utility function to convert from a C mxlFlowSynchronizationGroup handle to a C++ FlowSynchronizationGroup instance. | |
| FlowWriter * | to_FlowWriter (mxlFlowWriter writer) noexcept |
| Utility function to convert from a C mxlFlowWriter handle to a C++ FlowWriter instance. | |
| Instance * | to_Instance (mxlInstance instance) noexcept |
| Utility function to convert from a C mxlInstance handle to a C++ Instance class. | |
| template<typename T> | |
| bool | waitUntilChanged (T const *in_addr, T in_expected, Duration in_timeout) |
| template<typename T> | |
| bool | waitUntilChanged (T const *in_addr, T in_expected, Timepoint in_deadline) |
| template bool | waitUntilChanged< std::int32_t > (std::int32_t const *in_addr, std::int32_t in_expected, Duration in_timeout) |
| template bool | waitUntilChanged< std::int32_t > (std::int32_t const *in_addr, std::int32_t in_expected, Timepoint in_deadline) |
| template bool | waitUntilChanged< std::uint32_t > (std::uint32_t const *in_addr, std::uint32_t in_expected, Duration in_timeout) |
| template bool | waitUntilChanged< std::uint32_t > (std::uint32_t const *in_addr, std::uint32_t in_expected, Timepoint in_deadline) |
| template<typename T> | |
| void | wakeAll (T const *in_addr) |
| template void | wakeAll< std::int32_t > (std::int32_t const *in_addr) |
| template void | wakeAll< std::uint32_t > (std::uint32_t const *in_addr) |
| template<typename T> | |
| void | wakeOne (T const *in_addr) |
| template void | wakeOne< std::int32_t > (std::int32_t const *in_addr) |
| template void | wakeOne< std::uint32_t > (std::uint32_t const *in_addr) |
| ~DomainWatcher () | |
Variables | |
| std::filesystem::path | _domain |
| The monitored domain. | |
| std::mutex | _mutex |
| Prodect maps. | |
| std::atomic< bool > | _running |
| Controls the event processing thread. | |
| std::unordered_multimap< int, DomainWatcherRecord > | _watches |
| Map of watch descriptors to file records. Multiple records could use the same watchfd. | |
| std::thread | _watchThread |
| Event processing thread. | |
| constexpr auto const | CHANNEL_DATA_FILE_NAME = "channels" |
| constexpr auto const | DOMAIN_OPTIONS_FILE_NAME = "options.json" |
| else | |
| constexpr auto | EVENT_DATA_FILE_NAME = "events" |
| Filename of the single shared-memory event ring within a flow directory. | |
| constexpr auto | EVENT_HEADER_VERSION = std::uint32_t{1} |
| Version stored in the public mxlEventInfo metadata of every published entry. | |
| constexpr auto const | FLOW_ACCESS_FILE_NAME = "access" |
| constexpr auto const | FLOW_DATA_FILE_NAME = "data" |
| constexpr auto | FLOW_DATA_VERSION = 1U |
| The version of the flow data structs in shared memory that we expect and support. | |
| constexpr auto const | FLOW_DESCRIPTOR_FILE_NAME = "flow_def.json" |
| constexpr auto const | FLOW_DIRECTORY_NAME_SUFFIX = ".mxl-flow" |
| constexpr auto const | GRAIN_DATA_FILE_NAME_STEM = "data" |
| constexpr auto const | GRAIN_DIRECTORY_NAME = "grains" |
| constexpr auto | GRAIN_HEADER_VERSION = 1U |
| The version of the grain header structs in shared memory that we expect an support. | |
| constexpr auto const | MXL_GRAIN_PAYLOAD_OFFSET = std::size_t{8192} |
|
strong |
| Enumerator | |
|---|---|
| READ_ONLY | |
| READ_WRITE | |
| CREATE_READ_WRITE | |
Definition at line 22 of file SharedMemory.hpp.
|
strong |
An enumeration identifying one of the available clocks in the system.
| Enumerator | |
|---|---|
| Monotonic | |
| Realtime | |
| TAI | |
| ProcessCPUTime | |
| ThreadCPUTime | |
Definition at line 14 of file Timing.hpp.
|
strong |
| Enumerator | |
|---|---|
| Exclusive | |
| Shared | |
| None | |
Definition at line 15 of file SharedMemory.hpp.
| void mxl::lib::DomainWatcher::addFlow | ( | FlowWriter * | writer, |
| uuids::uuid | id ) |
Add a new FlowWriter reference to the DomainWatcher.
| writer | The FlowWriter reference |
| id | Id of the flow the FlowWriter is writing to. |
Definition at line 210 of file DomainWatcher.cpp.
|
nodiscardconstexprnoexcept |
Return the equivalent of a timespec instance as a duration.
Definition at line 385 of file Timing.hpp.
|
nodiscardconstexprnoexcept |
Return the equivalent of a timespec instance relative to whichever reference frame the system uses as a time point.
Definition at line 236 of file Timing.hpp.
|
nodiscardconstexprnoexcept |
Return the equivalent of a duration as a timespec instance.
Definition at line 390 of file Timing.hpp.
|
nodiscardconstexprnoexcept |
Return the equivalent of a time point as a timespec instance relative to whichever reference frame the system uses.
Definition at line 241 of file Timing.hpp.
|
nodiscardnoexcept |
Returns the number of writers registered for flow id 'id'.
|
nodiscardnoexcept |
Return the current time.
Definition at line 11 of file Timing.cpp.
|
nodiscardnoexcept |
Return the current time in UTC.
Definition at line 23 of file Timing.cpp.
|
nodiscardconstexprnoexcept |
Definition at line 48 of file Deferred.hpp.
|
explicit |
Monitors flows on disk for changes.
A flow writer is looking for changes to the {mxl_domain}/{flow_id}.mxl-flow/access file. This file is 'touched' by readers when they read a grain, which will trigger a 'FlowInfo.lastRead` update.
class MXL_EXPORT DomainWatcher */ { public: using ptr = std::shared_ptr<DomainWatcher>; ///< Shared ownership of the domain watcher.
/** Constructor that initializes inotify and epoll/kqueue, and starts the event processing thread.
| in_domain | The mxl domain path to monitor. |
| in_callback | Function to be called when a monitored file's attributes change. |
Definition at line 53 of file DomainWatcher.cpp.
|
noexcept |
Definition at line 10 of file DynamicPointerCast.hpp.
|
nodiscardconstexprnoexcept |
Return a duration representing the specified number of microseconds.
Definition at line 380 of file Timing.hpp.
|
nodiscardconstexprnoexcept |
Return a duration representing the specified number of milliseconds.
Definition at line 375 of file Timing.hpp.
|
nodiscardconstexprnoexcept |
Return a duration representing the specified number of seconds.
Definition at line 370 of file Timing.hpp.
| MXL_EXPORT std::uint32_t mxl::lib::get10BitAlphaLineLength | ( | std::size_t | width | ) |
Length in bytes of a line in the 10-bit alpha video format (3x10-bit samples per 32 bit word).
| width | The width of the video frame in pixels. |
Definition at line 14 of file MediaUtils.cpp.
| MXL_EXPORT std::uint32_t mxl::lib::getV210LineLength | ( | std::size_t | width | ) |
Length in bytes of a line in the V210 video format.
| width | The width of the video frame in pixels. |
Definition at line 8 of file MediaUtils.cpp.
| mxl::lib::if | ( | lockMode ! | = LockMode::None && mode != AccessMode::READ_ONLY | ) |
Definition at line 56 of file SharedMemory.cpp.
| mxl::lib::if | ( | struct stat statBuf;::fstat(_fd, &statBuf) ! | = -1 | ) |
Definition at line 81 of file SharedMemory.cpp.
|
constexprnoexcept |
Definition at line 25 of file IndexConversion.hpp.
|
nodiscardconstexprnoexcept |
Return the equivalent of a duration in microseconds.
Definition at line 360 of file Timing.hpp.
|
nodiscardconstexprnoexcept |
Return the equivalent of a duration in milliseconds.
Definition at line 355 of file Timing.hpp.
|
nodiscardconstexprnoexcept |
Return the equivalent of a duration in nanoseconds.
Definition at line 365 of file Timing.hpp.
|
nodiscardconstexprnoexcept |
Return the equivalent of a duration in seconds.
Definition at line 350 of file Timing.hpp.
|
inline |
Convert a JSON string holding a decimal number to the integer type T.
Use this for values such as memory addresses and keys, which are stored as strings because a JSON number is a double and cannot hold every 64-bit integer exactly.
| value | The JSON value. |
| name | The field name, used in the error message. |
| std::invalid_argument | If the value is not a string, or not a decimal number in the range of T. |
Definition at line 270 of file JsonUtils.hpp.
|
inline |
Convert a JSON number to the integer type T.
Converting a double that is outside the range of an integer type is undefined behavior in C++, so the value is checked before the conversion.
| value | The JSON value. |
| name | The field name, used in the error message. |
| std::invalid_argument | If the value is not a number, not a whole number, or outside the range of T. |
Definition at line 236 of file JsonUtils.hpp.
|
inline |
Definition at line 83 of file PathUtils.hpp.
| MXL_EXPORT std::filesystem::path mxl::lib::makeChannelDataFilePath | ( | std::filesystem::path const & | flowDirectory | ) |
Definition at line 47 of file PathUtils.cpp.
| MXL_EXPORT std::filesystem::path mxl::lib::makeDomainOptionsFilePath | ( | std::filesystem::path const & | domain | ) |
Definition at line 59 of file PathUtils.cpp.
| MXL_EXPORT std::filesystem::path mxl::lib::makeEventDataFilePath | ( | std::filesystem::path const & | flowDirectory | ) |
Locate an event ring file within its flow directory.
| flowDirectory | Fully resolved flow directory, including its flow ID component. |
Definition at line 53 of file PathUtils.cpp.
|
inline |
Definition at line 68 of file PathUtils.hpp.
| MXL_EXPORT std::filesystem::path mxl::lib::makeFlowAccessFilePath | ( | std::filesystem::path const & | flowDirectory | ) |
Definition at line 29 of file PathUtils.cpp.
|
inline |
Definition at line 58 of file PathUtils.hpp.
| MXL_EXPORT std::filesystem::path mxl::lib::makeFlowDataFilePath | ( | std::filesystem::path const & | flowDirectory | ) |
Definition at line 17 of file PathUtils.cpp.
|
inline |
Definition at line 63 of file PathUtils.hpp.
| MXL_EXPORT std::filesystem::path mxl::lib::makeFlowDescriptorFilePath | ( | std::filesystem::path const & | flowDirectory | ) |
Definition at line 23 of file PathUtils.cpp.
| MXL_EXPORT std::filesystem::path mxl::lib::makeFlowDirectoryName | ( | std::filesystem::path const & | domain, |
| std::string const & | uuid ) |
Definition at line 11 of file PathUtils.cpp.
|
inline |
Definition at line 78 of file PathUtils.hpp.
| MXL_EXPORT std::filesystem::path mxl::lib::makeGrainDataFilePath | ( | std::filesystem::path const & | grainDirectory, |
| unsigned int | index ) |
Definition at line 41 of file PathUtils.cpp.
|
inline |
Definition at line 73 of file PathUtils.hpp.
| MXL_EXPORT std::filesystem::path mxl::lib::makeGrainDirectoryName | ( | std::filesystem::path const & | flowDirectory | ) |
Definition at line 35 of file PathUtils.cpp.
| std::filesystem::path mxl::lib::makelowAccessFilePath | ( | std::filesystem::path const & | domain, |
| std::string const & | uuid ) |
Definition at line 276 of file Timing.hpp.
Definition at line 204 of file Timing.hpp.
Definition at line 316 of file Timing.hpp.
Definition at line 311 of file Timing.hpp.
Definition at line 301 of file Timing.hpp.
Definition at line 337 of file Timing.hpp.
Definition at line 306 of file Timing.hpp.
Definition at line 331 of file Timing.hpp.
Definition at line 326 of file Timing.hpp.
Definition at line 321 of file Timing.hpp.
Definition at line 291 of file Timing.hpp.
Definition at line 209 of file Timing.hpp.
| std::ostream & mxl::lib::operator<< | ( | std::ostream & | os, |
| Grain const & | obj ) |
Definition at line 281 of file Timing.hpp.
Definition at line 219 of file Timing.hpp.
Definition at line 271 of file Timing.hpp.
Definition at line 199 of file Timing.hpp.
Definition at line 296 of file Timing.hpp.
Definition at line 214 of file Timing.hpp.
Definition at line 286 of file Timing.hpp.
Definition at line 224 of file Timing.hpp.
|
inline |
Parse a JSON document with the limits in limits.
Unlike picojson::parse(value&, std::string const&), this rejects any content after the first value other than whitespace, and rejects objects with duplicate keys.
| out | Receives the parsed value. Its content is unspecified on error. |
| text | The JSON document. |
| limits | The limits to apply. |
Definition at line 193 of file JsonUtils.hpp.
|
private |
Event loop that waits for inotify file change events and processes them. (invokes the callback)
Definition at line 322 of file DomainWatcher.cpp.
| void mxl::lib::DomainWatcher::removeFlow | ( | FlowWriter * | writer, |
| uuids::uuid | id ) |
Remove a FlowWriter reference from the DomainWatcher. If no more FlowWriter references for a given flow id are present in the DomainWatcher it stops watching the flow.
| writer | The flow writer reference to remove. |
| id | Id of the flow the FlowWriter is writing to. |
Definition at line 279 of file DomainWatcher.cpp.
|
nodiscardnoexcept |
Returns the total number of writers that are registered in the DomainWatcher.
| void mxl::lib::stop | ( | ) |
Stops the running thread
Definition at line 93 of file DomainWatcher.hpp.
| T mxl::lib::stringToInteger | ( | std::string_view | text, |
| std::string_view | name ) |
Convert a decimal string to the integer type T.
| text | The string to convert. |
| name | The field name, used in the error message. |
| std::invalid_argument | If the string is not a decimal number in the range of T. |
Definition at line 24 of file StringUtils.hpp.
|
constexprnoexcept |
ADL compatible shwap function for SharedMemorySegment.
Definition at line 373 of file SharedMemory.hpp.
|
constexprnoexcept |
ADL compatible shwap function for SharedMemorySegment.
Definition at line 316 of file SharedMemory.hpp.
|
constexprnoexcept |
Definition at line 12 of file IndexConversion.hpp.
|
inlinenoexcept |
Utility function to convert from a C mxlFlowReader handle to a C++ FlowReader instance.
Definition at line 252 of file Instance.hpp.
|
inlinenoexcept |
Utility function to convert from a C mxlFlowSynchronizationGroup handle to a C++ FlowSynchronizationGroup instance.
Definition at line 262 of file Instance.hpp.
|
inlinenoexcept |
Utility function to convert from a C mxlFlowWriter handle to a C++ FlowWriter instance.
Definition at line 257 of file Instance.hpp.
|
inlinenoexcept |
Utility function to convert from a C mxlInstance handle to a C++ Instance class.
Definition at line 247 of file Instance.hpp.
| bool mxl::lib::waitUntilChanged | ( | T const * | in_addr, |
| T | in_expected, | ||
| Duration | in_timeout ) |
Wait until *in_addr changes or timeout expires.
| in_addr | The memory address to monitor. Must refer to a 32 bit value. |
| in_expected | The initial value expected at in_addr |
| in_timeout | How long to wait. |
Definition at line 114 of file Sync.cpp.
| bool mxl::lib::waitUntilChanged | ( | T const * | in_addr, |
| T | in_expected, | ||
| Timepoint | in_deadline ) |
Wait until *in_addr changes or timeout expires.
| in_addr | The memory address to monitor. Must refer to a 32 bit value. |
| in_expected | The initial value expected at in_addr |
| in_deadline | Until when to wait. Timepoint is expected to come from Clock::Realtime. |
Definition at line 68 of file Sync.cpp.
| template bool mxl::lib::waitUntilChanged< std::int32_t > | ( | std::int32_t const * | in_addr, |
| std::int32_t | in_expected, | ||
| Duration | in_timeout ) |
| template bool mxl::lib::waitUntilChanged< std::int32_t > | ( | std::int32_t const * | in_addr, |
| std::int32_t | in_expected, | ||
| Timepoint | in_deadline ) |
| template bool mxl::lib::waitUntilChanged< std::uint32_t > | ( | std::uint32_t const * | in_addr, |
| std::uint32_t | in_expected, | ||
| Duration | in_timeout ) |
| template bool mxl::lib::waitUntilChanged< std::uint32_t > | ( | std::uint32_t const * | in_addr, |
| std::uint32_t | in_expected, | ||
| Timepoint | in_deadline ) |
| void mxl::lib::wakeAll | ( | T const * | in_addr | ) |
Wake all waiters waiting on in_addr
| in_addr | The memory address to signal. Must refer to a 32 bit value. |
Definition at line 131 of file Sync.cpp.
| template void mxl::lib::wakeAll< std::int32_t > | ( | std::int32_t const * | in_addr | ) |
| template void mxl::lib::wakeAll< std::uint32_t > | ( | std::uint32_t const * | in_addr | ) |
| void mxl::lib::wakeOne | ( | T const * | in_addr | ) |
Wake a single waiter waiting on in_addr
| in_addr | The memory address to signal. Must refer to a 32 bit value. |
Definition at line 122 of file Sync.cpp.
| template void mxl::lib::wakeOne< std::int32_t > | ( | std::int32_t const * | in_addr | ) |
| template void mxl::lib::wakeOne< std::uint32_t > | ( | std::uint32_t const * | in_addr | ) |
| mxl::lib::DomainWatcher::~DomainWatcher | ( | ) |
Destructor that stops the event loop, removes all watches, and closes file descriptors.
Definition at line 158 of file DomainWatcher.cpp.
|
private |
The monitored domain.
Definition at line 142 of file DomainWatcher.hpp.
|
mutableprivate |
Prodect maps.
Definition at line 160 of file DomainWatcher.hpp.
|
private |
Controls the event processing thread.
Definition at line 162 of file DomainWatcher.hpp.
|
private |
Map of watch descriptors to file records. Multiple records could use the same watchfd.
Definition at line 158 of file DomainWatcher.hpp.
|
private |
Event processing thread.
Definition at line 164 of file DomainWatcher.hpp.
|
inlineconstexpr |
Definition at line 20 of file PathUtils.hpp.
|
inlineconstexpr |
Definition at line 23 of file PathUtils.hpp.
| mxl::lib::else |
Definition at line 47 of file SharedMemory.cpp.
|
inlineconstexpr |
Filename of the single shared-memory event ring within a flow directory.
Definition at line 22 of file PathUtils.hpp.
|
inlineconstexpr |
Version stored in the public mxlEventInfo metadata of every published entry.
Definition at line 61 of file Flow.hpp.
|
inlineconstexpr |
Definition at line 17 of file PathUtils.hpp.
|
inlineconstexpr |
Definition at line 16 of file PathUtils.hpp.
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 15 of file PathUtils.hpp.
|
inlineconstexpr |
Definition at line 14 of file PathUtils.hpp.
|
inlineconstexpr |
Definition at line 19 of file PathUtils.hpp.
|
inlineconstexpr |
Definition at line 18 of file PathUtils.hpp.
|
inlineconstexpr |
|
inlineconstexpr |
The first 8KiB of a grain are reserved for the mxlGrainInfo structure, including user data. Ample padding is provided between the header and the payload. Payload is page aligned AND AVX512 (64 bytes) aligned.
Definition at line 38 of file Flow.hpp.