|
dxd - dynax driver framework 3.0.1d223
cross platform open source driver development framework
|
high resolution timer source: an OS timer wait toward the objective, optionally handing over to yield/spin polling covering the last lead; self pacing by duration like free_run, or paced by an override's sync() More...
#include <dx_clock.h>
Public Types | |
| typedef _clock_t | clock_t |
| typedef _event_t | event_t |
Public Member Functions | |
| virtual void | sync (const typename clock_t::time_point &now) |
| super & | wait (bool reset=false) override |
Public Attributes | |
| std::atomic< dx::stream::clock::strategy > | strategy {dx::stream::clock::plain} |
| switchable at runtime: the poll modes run only what the timer left | |
Protected Member Functions | |
| void | wait (int64_t remaining) |
| the timer covers the remaining ns up to the strategy's lead, the strategy polls the rest toward the objective | |
Protected Attributes | |
| std::condition_variable | condition_variable |
| clock_t::duration | duration {clock_t::duration::zero()} |
| _event_t | event |
| std::mutex | mutex |
| _clock_t::time_point | objective |
| std::atomic< bool > | running {false} |
| os_result | status {not_initialized} |
high resolution timer source: an OS timer wait toward the objective, optionally handing over to yield/spin polling covering the last lead; self pacing by duration like free_run, or paced by an override's sync()
|
inherited |
|
inherited |
|
inlinevirtualinherited |
Reimplemented from dx::source< _event_t, _clock_t >.
Reimplemented in dx::usb::clock::source< device_t >.
the timer covers the remaining ns up to the strategy's lead, the strategy polls the rest toward the objective
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
| std::atomic<dx::stream::clock::strategy> dx::timer< event_t, clock_t >::strategy {dx::stream::clock::plain} |
switchable at runtime: the poll modes run only what the timer left
| (c) copyright 2009 dynamic acoustics e.U. | generated on |