|
dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
|
streaming group: the streams of one device sharing a desc::stream::group id, streamed together by one realtime thread More...
#include <dx_stream_group.h>
Public Types | |
| typedef settings<device_t>::client | client |
| typedef dx::clock<source_t> | clock |
| the one clock of this group, its source freely selectable | |
| typedef dx::source<>::clock_t | clock_t |
| typedef _device_t | device_t |
| typedef dx::source<>::event_t | event_t |
| typedef settings_promoted<device_t, store>::type | promoted |
| typedef settings_promoted<device_t, store>::type | promoted |
| typedef device_t::stream_t | stream_t |
| typedef settings<device_t>::transport | transport |
| the group's two sides, reached as transport::/client:: members | |
Public Member Functions | |
| void | conclude() noexcept |
| template<typename... args_t> | |
| group(device_t& device, args_t&&... args) | |
| virtual void | halt() noexcept |
| stop and remove clock thread | |
| realtime& | initialize(const std::chrono::high_resolution_clock::duration& resolution) |
| void | initialize(const typename clock_t::duration& duration) |
| operator event_t&() noexcept | |
| operator event_t*() noexcept | |
| void | run() override |
| the session starts on the registered streams, held until its thread ends | |
| virtual void | sync(const typename clock_t::time_point& now) |
| virtual source& | wait(bool reset= false) |
Static Public Member Functions | |
| static std::string | key(direction::direction direction, uint32_t) |
| static std::string | key(direction::direction direction, uint32_t strategy) |
Public Attributes | |
| listener<dx::listen<std::function<void(const uint32_t &)>>> | iosize_listener |
| a margin defaulted by the device's iosize (a host's tick is its buffer) reloads with it | |
| promoted | safety_offset [direction::directions] |
| promoted | safety_offset [direction::directions] |
| promoted<uint32_t> | start |
| promoted<bool> | started |
| std::map<decltype(stream_t::target.idx()), std::weak_ptr<stream_t>> | streams |
| shared stream ownership: central weak reference per stream, guarded by device | |
| promoted | sync_strategy |
| promoted | sync_strategy |
Protected Member Functions | |
| void | discharge() noexcept override |
| the thread's last act: the session's streams are released on the thread that visited them | |
| virtual void | notify() noexcept |
| bool | self() const |
| the caller is the clock's own thread: a halt from its tick ends the loop, nobody joins it | |
| void | tick() override |
| the plain container has no transport of its own: a bus whose group moves the data overrides this, a group fed from outside (service, kernel, SDK callback) has nothing to do here | |
Protected Attributes | |
| std::condition_variable | condition_variable |
| device_t& | device |
| also the mutex serializing membership | |
| _event_t | event |
| std::function<void()> | flush_hook |
| std::function<void()> | halt_hook |
| std::vector<std::shared_ptr<stream_t>> | members |
| the session's streams: taken before the thread starts, released at its end - the tick visits them without a lock | |
| dx::stream::clock::monitor* | monitor{} |
| device.monitor cached at the session's start: the tick never maps shared memory | |
| std::mutex | mutex |
| _clock_t::time_point | objective |
| std::function<void()> | run_hook |
| std::atomic<bool> | running |
| os_result | status |
| const struct device_t::desc_t::stream* | sync_reference{} |
| device.sync_reference cached: the tick never reads the promoted | |
streaming group: the streams of one device sharing a desc::stream::group id, streamed together by one realtime thread
| typedef settings<device_t>::client dx::stream::group<_device_t, source_t>::client |
| typedef dx::clock<source_t> dx::stream::group<_device_t, source_t>::clock |
the one clock of this group, its source freely selectable
|
inherited |
| typedef _device_t dx::stream::group<_device_t, source_t>::device_t |
|
inherited |
|
inherited |
|
inherited |
| typedef device_t::stream_t dx::stream::group<_device_t, source_t>::stream_t |
| typedef settings<device_t>::transport dx::stream::group<_device_t, source_t>::transport |
the group's two sides, reached as transport::/client:: members
|
inline |
|
inlinenoexceptinherited |
|
inlineoverrideprotectedvirtualnoexcept |
the thread's last act: the session's streams are released on the thread that visited them
Reimplemented from dx::clock< dx::source<> >.
|
inlinevirtualnoexceptinherited |
stop and remove clock thread
<halting from its own tick: the loop ends once the tick returns, nobody can join here
<elect the single caller allowed to join() - concurrent halt() callers (e.g. async surprise vs. the main test thread) would otherwise both reach join() on the same thread, undefined behavior
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inlinestaticinherited |
|
inlineprotectedvirtualnoexceptinherited |
notify change from device requiring streaming reset
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inlineoverridevirtual |
the session starts on the registered streams, held until its thread ends
Reimplemented from dx::clock< dx::source<> >.
|
inlineprotectedinherited |
the caller is the clock's own thread: a halt from its tick ends the loop, nobody joins it
|
inlinevirtualinherited |
|
inlineoverrideprotectedvirtual |
the plain container has no transport of its own: a bus whose group moves the data overrides this, a group fed from outside (service, kernel, SDK callback) has nothing to do here
Implements dx::clock< dx::source<> >.
|
inlinevirtualinherited |
|
protectedinherited |
|
protected |
also the mutex serializing membership
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
inherited |
a margin defaulted by the device's iosize (a host's tick is its buffer) reloads with it
|
protected |
the session's streams: taken before the thread starts, released at its end - the tick visits them without a lock
|
protected |
device.monitor cached at the session's start: the tick never maps shared memory
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protectedinherited |
| std::map<decltype(stream_t::target.idx()), std::weak_ptr<stream_t>> dx::stream::group<_device_t, source_t>::streams |
shared stream ownership: central weak reference per stream, guarded by device
|
protected |
device.sync_reference cached: the tick never reads the promoted
|
inherited |
|
inherited |