#include <BaseController_p.h>
Inherited by scope::DaqController::Impl, scope::DisplayController::Impl, scope::PipelineController::Impl, scope::ScopeController::Impl, and scope::StorageController::Impl.
|
virtual ControllerReturnStatus | Run (StopCondition *const ac, const uint32_t &_n) |
|
template<uint32_t N_ACTIVES = 1, bool STATIC_PIMPL = false>
class scope::BaseController< N_ACTIVES, STATIC_PIMPL >::Impl
Implementation class of the BaseController, uses std::async to execute worker functions in a separate thread.
Definition at line 11 of file BaseController_p.h.
template<uint32_t N_ACTIVES = 1, bool STATIC_PIMPL = false>
template<uint32_t N_ACTIVES = 1, bool STATIC_PIMPL = false>
- Parameters
-
[in] | _parameters | initial set of ScopeParameters |
Definition at line 44 of file BaseController_p.h.
template<uint32_t N_ACTIVES = 1, bool STATIC_PIMPL = false>
template<uint32_t N_ACTIVES = 1, bool STATIC_PIMPL = false>
template<uint32_t N_ACTIVES = 1, bool STATIC_PIMPL = false>
template<uint32_t N_ACTIVES = 1, bool STATIC_PIMPL = false>
Execute the Run worker functions asynchronously, give them a reference to a StopCondition and get their ControllerReturnStatus futures.
- Parameters
-
[in] | _params | new set of ScopeParameters to use in the Controller (and its worker functions) |
Reimplemented in scope::DaqController::Impl.
Definition at line 56 of file BaseController_p.h.
template<uint32_t N_ACTIVES = 1, bool STATIC_PIMPL = false>
template<uint32_t N_ACTIVES = 1, bool STATIC_PIMPL = false>
template<uint32_t N_ACTIVES = 1, bool STATIC_PIMPL = false>
virtual ControllerReturnStatus scope::BaseController< N_ACTIVES, STATIC_PIMPL >::Impl::WaitForOne |
( |
const uint32_t & |
_a, |
|
|
const int32_t & |
_wait_time |
|
) |
| |
|
inlinevirtual |
Waits for the future of one async worker function.
- Parameters
-
[in] | _a | which async to wait for |
[in] | _wait_time | in milliseconds to wait for the worker function to return, if -1 wait indefinitely |
- Returns
- the future value
Definition at line 84 of file BaseController_p.h.
template<uint32_t N_ACTIVES = 1, bool STATIC_PIMPL = false>
virtual ControllerReturnStatus scope::BaseController< N_ACTIVES, STATIC_PIMPL >::Impl::WaitForAll |
( |
const int32_t & |
_wait_time | ) |
|
|
inlinevirtual |
Wait for the futures of all async worker functions.
- Parameters
-
[in] | _wait_time | time in milliseconds to wait for the async worker function to return, if -1 wait indefinitely |
- Returns
- the cumulated (or'ed) ControllerReturnStatus' from all async worker functions' futures
Definition at line 110 of file BaseController_p.h.
template<uint32_t N_ACTIVES = 1, bool STATIC_PIMPL = false>
std::array<std::shared_future<ControllerReturnStatus>, N_ACTIVES> scope::BaseController< N_ACTIVES, STATIC_PIMPL >::Impl::futures |
|
protected |
futures from the asynchronous Run worker functions
Definition at line 15 of file BaseController_p.h.
template<uint32_t N_ACTIVES = 1, bool STATIC_PIMPL = false>
template<uint32_t N_ACTIVES = 1, bool STATIC_PIMPL = false>
The documentation for this class was generated from the following file: