|
MXL : Media eXchange Layer
MXL
|
POSIX event consumer with a single-thread cursor and an owned payload snapshot. More...
#include <PosixEventFlowReader.hpp>


Public Member Functions | |
| virtual mxlStatus | getEvent (Timepoint deadline, mxlEventInfo *info, std::uint8_t **payload) override |
| Copy the next available entry and advance this reader's cursor. | |
| virtual mxlFlowConfigInfo | getFlowConfigInfo () const override |
| virtual FlowData const & | getFlowData () const override |
| virtual mxlFlowInfo | getFlowInfo () const override |
| virtual mxlFlowRuntimeInfo | getFlowRuntimeInfo () const override |
| PosixEventFlowReader (FlowManager const &manager, uuids::uuid const &flowId, std::unique_ptr< EventFlowData > &&data) | |
| Attach a reader at the oldest retained entry. | |
| virtual | ~PosixEventFlowReader () override |
| Close the access descriptor and release the snapshot and shared mappings. | |
| Public Member Functions inherited from mxl::lib::FlowReader | |
| std::filesystem::path const & | getDomain () const |
| uuids::uuid const & | getId () const |
| virtual | ~FlowReader () |
Protected Member Functions | |
| virtual bool | isFlowValid () const override |
| Protected Member Functions inherited from mxl::lib::EventFlowReader | |
| FlowReader (uuids::uuid &&flowId, std::filesystem::path const &domain) | |
| Initialize flow identity and domain using the base reader constructors. | |
| FlowReader (uuids::uuid const &flowId, std::filesystem::path const &domain) | |
| Initialize flow identity and domain using the base reader constructors. | |
| Protected Member Functions inherited from mxl::lib::FlowReader | |
| bool | checkPermissions () const |
| FlowReader (uuids::uuid &&flowId, std::filesystem::path const &domain) | |
| FlowReader (uuids::uuid const &flowId, std::filesystem::path const &domain) | |
Private Member Functions | |
| bool | isFlowValidImpl () const |
Private Attributes | |
| int | _accessFileFd |
| Access notification descriptor, or -1 if unavailable. | |
| std::unique_ptr< EventFlowData > | _flowData |
| Owned common metadata and read-only event mappings. | |
| std::uint64_t | _nextIndex |
| Next queue entry for this reader's owning thread. | |
| std::vector< std::uint8_t > | _snapshot |
| Payload storage reused on the next read attempt. | |
POSIX event consumer with a single-thread cursor and an owned payload snapshot.
Definition at line 18 of file PosixEventFlowReader.hpp.
| mxl::lib::PosixEventFlowReader::PosixEventFlowReader | ( | FlowManager const & | manager, |
| uuids::uuid const & | flowId, | ||
| std::unique_ptr< EventFlowData > && | data ) |
Attach a reader at the oldest retained entry.
| manager | Manager supplying the flow domain. |
| flowId | Identifier of the mapped flow. |
| data | Mappings whose ownership transfers to this reader. |
Definition at line 46 of file PosixEventFlowReader.cpp.
|
overridevirtual |
Close the access descriptor and release the snapshot and shared mappings.
Definition at line 62 of file PosixEventFlowReader.cpp.
|
overridevirtual |
Copy the next available entry and advance this reader's cursor.
| deadline | Absolute realtime deadline for waiting; an expired deadline permits one attempt. | |
| [out] | info | Metadata destination, valid on success; must not be null. |
| [out] | payload | Receives private snapshot storage on success; must not be null. |
Implements mxl::lib::EventFlowReader.
Definition at line 99 of file PosixEventFlowReader.cpp.
|
overridevirtual |
Implements mxl::lib::FlowReader.
Definition at line 89 of file PosixEventFlowReader.cpp.
|
overridevirtual |
Implements mxl::lib::FlowReader.
Definition at line 75 of file PosixEventFlowReader.cpp.
|
overridevirtual |
Implements mxl::lib::FlowReader.
Definition at line 84 of file PosixEventFlowReader.cpp.
|
overridevirtual |
Implements mxl::lib::FlowReader.
Definition at line 94 of file PosixEventFlowReader.cpp.
|
overrideprotectedvirtual |
Implements mxl::lib::FlowReader.
Definition at line 142 of file PosixEventFlowReader.cpp.
|
private |
Definition at line 147 of file PosixEventFlowReader.cpp.
|
private |
Access notification descriptor, or -1 if unavailable.
Definition at line 51 of file PosixEventFlowReader.hpp.
|
private |
Owned common metadata and read-only event mappings.
Definition at line 50 of file PosixEventFlowReader.hpp.
|
private |
Next queue entry for this reader's owning thread.
Definition at line 52 of file PosixEventFlowReader.hpp.
|
private |
Payload storage reused on the next read attempt.
Definition at line 53 of file PosixEventFlowReader.hpp.