|
MXL : Media eXchange Layer
MXL
|
#include <PosixContinuousFlowWriter.hpp>


Public Member Functions | |
| virtual mxlStatus | cancel () override |
| virtual mxlStatus | commit () override |
| virtual mxlFlowConfigInfo | getFlowConfigInfo () const override |
| virtual FlowData const & | getFlowData () const override |
| virtual FlowData & | getFlowData () override |
| virtual mxlFlowInfo | getFlowInfo () const override |
| virtual mxlFlowRuntimeInfo | getFlowRuntimeInfo () const override |
| virtual std::size_t | getMaxWriteLength () const override |
| virtual bool | isExclusive () const override |
| virtual bool | makeExclusive () override |
| virtual mxlStatus | openSamples (std::uint64_t index, std::size_t count, mxlMutableWrappedMultiBufferSlice &payloadBufferSlices) override |
| PosixContinuousFlowWriter (FlowManager const &manager, uuids::uuid const &flowId, std::unique_ptr< ContinuousFlowData > &&data) | |
| Public Member Functions inherited from mxl::lib::FlowWriter | |
| uuids::uuid const & | getId () const |
| virtual | ~FlowWriter () |
Private Member Functions | |
| bool | signalCompletedBatch () noexcept |
Private Attributes | |
| std::size_t | _bufferLength |
| std::size_t | _channelCount |
| std::size_t | _currentCount |
| std::uint64_t | _currentIndex |
| std::uint32_t | _earlySyncThreshold |
| std::unique_ptr< ContinuousFlowData > | _flowData |
| std::uint64_t | _lastCommittedIndex |
| std::uint64_t | _lastSyncSampleBatch |
| std::uint32_t | _syncBatchSize |
Additional Inherited Members | |
| Protected Member Functions inherited from mxl::lib::ContinuousFlowWriter | |
| FlowWriter (uuids::uuid &&flowId, std::filesystem::path const &domain) | |
| FlowWriter (uuids::uuid const &flowId, std::filesystem::path const &domain) | |
| Protected Member Functions inherited from mxl::lib::FlowWriter | |
| bool | checkPermissions () const |
| FlowWriter (uuids::uuid &&flowId, std::filesystem::path const &domain) | |
| FlowWriter (uuids::uuid const &flowId, std::filesystem::path const &domain) | |
Implementation of a FlowWriter based on POSIX shared memory mapping.
Definition at line 22 of file PosixContinuousFlowWriter.hpp.
| mxl::lib::PosixContinuousFlowWriter::PosixContinuousFlowWriter | ( | FlowManager const & | manager, |
| uuids::uuid const & | flowId, | ||
| std::unique_ptr< ContinuousFlowData > && | data ) |
Creates a PosixContinuousFlowWriter
| [in] | manager | A referene to the flow manager used to obtain additional information about the flows context. |
Definition at line 15 of file PosixContinuousFlowWriter.cpp.
|
overridevirtual |
Implements mxl::lib::ContinuousFlowWriter.
Definition at line 188 of file PosixContinuousFlowWriter.cpp.
|
overridevirtual |
Implements mxl::lib::ContinuousFlowWriter.
Definition at line 130 of file PosixContinuousFlowWriter.cpp.
|
nodiscardoverridevirtual |
Implements mxl::lib::FlowWriter.
Definition at line 66 of file PosixContinuousFlowWriter.cpp.
|
nodiscardoverridevirtual |
Implements mxl::lib::FlowWriter.
Definition at line 52 of file PosixContinuousFlowWriter.cpp.
|
nodiscardoverridevirtual |
Implements mxl::lib::FlowWriter.
Definition at line 43 of file PosixContinuousFlowWriter.cpp.
|
nodiscardoverridevirtual |
Implements mxl::lib::FlowWriter.
Definition at line 61 of file PosixContinuousFlowWriter.cpp.
|
nodiscardoverridevirtual |
Implements mxl::lib::FlowWriter.
Definition at line 71 of file PosixContinuousFlowWriter.cpp.
|
nodiscardoverridevirtual |
Implements mxl::lib::ContinuousFlowWriter.
Definition at line 76 of file PosixContinuousFlowWriter.cpp.
|
nodiscardoverridevirtual |
Check if this is the only writer for this flow.
Implements mxl::lib::FlowWriter.
Definition at line 223 of file PosixContinuousFlowWriter.cpp.
|
overridevirtual |
Try to turn this into a exclusive writer.
Implements mxl::lib::FlowWriter.
Definition at line 233 of file PosixContinuousFlowWriter.cpp.
|
overridevirtual |
Implements mxl::lib::ContinuousFlowWriter.
Definition at line 81 of file PosixContinuousFlowWriter.cpp.
|
privatenoexcept |
Definition at line 195 of file PosixContinuousFlowWriter.cpp.
|
private |
Cached copy of the length of the per channel buffers from mxlFlowInfo.
Definition at line 81 of file PosixContinuousFlowWriter.hpp.
|
private |
Cached copy of the numer of channels from mxlFlowInfo.
Definition at line 79 of file PosixContinuousFlowWriter.hpp.
|
private |
The sample count for the currently opened range. 0 if no range is currently opened.
Definition at line 85 of file PosixContinuousFlowWriter.hpp.
|
private |
The currently opened sample range head index. MXL_UNDEFINED_INDEX if no range is currently opened.
Definition at line 83 of file PosixContinuousFlowWriter.hpp.
|
private |
The threshold at which to signal even before _syncBatchSize is reached, in order to not exceed the maximum.
Definition at line 92 of file PosixContinuousFlowWriter.hpp.
|
private |
The FlowData for the currently opened flow. null if no flow is opened.
Definition at line 77 of file PosixContinuousFlowWriter.hpp.
|
private |
The last committed sample range head index. MXL_UNDEFINED_INDEX if no range has been committed yet.
Definition at line 87 of file PosixContinuousFlowWriter.hpp.
|
private |
The last sample batch (as a factor of _syncBatchSize) that has been signaled.
Definition at line 95 of file PosixContinuousFlowWriter.hpp.
|
private |
Cached preprocessed copy of mxlCommonFlowInfo::maxSyncBatchSizeHint.
Definition at line 90 of file PosixContinuousFlowWriter.hpp.