Allow exclusive access to some of TaskBase's
private methods to InstrumentBase
.
More...
Allow exclusive access to some of TaskBase's
private methods to InstrumentBase
.
Definition at line 896 of file Instrument.h.
◆ InstrumentBaseOnlyType()
constexpr DynExp::TaskBase::InstrumentBaseOnlyType::InstrumentBaseOnlyType |
( |
TaskBase & |
Parent | ) |
|
|
inlineconstexprprivatenoexcept |
◆ Lock()
void DynExp::TaskBase::InstrumentBaseOnlyType::Lock |
( |
| ) |
|
|
inlineprivate |
Locks the task to prepare it for execution.
- Exceptions
-
Definition at line 907 of file Instrument.h.
◆ Run()
Runs the task. Override RunChild()
to define a derived task's action(s). Any exception leaving RunChild()
will terminate the instrument thread. In this case, the instrument has to be reset in order to restart it. For minor errors occurring in RunChild()
, return a TaskResultType
instance with TaskResultType::ErrorCode set to an appropriate (non-zero) value. This sets State to TaskState::Failed. Note that in this case there might be no way to retrieve the error if finished tasks are not kept (i.e. KeepFinishedTask()
returns false) and if no CallbackFunc has been set. RunChild()
is supposed to check the return value of IsAborting()
.
- Parameters
-
Instance | Handle to the instrument thread's data |
- Returns
- Returns true if task handling should continue, false if the instrument thread should terminate.
- Exceptions
-
Definition at line 908 of file Instrument.h.
◆ InstrumentBase
◆ TaskBase
◆ Parent
TaskBase& DynExp::TaskBase::InstrumentBaseOnlyType::Parent |
|
private |
The documentation for this class was generated from the following file: