This class contains common behaviour of a TaskControl object.
More...
#include <TaskControl.h>
This class contains common behaviour of a TaskControl object.
- Note
- thread-safe
◆ State
Enumerator |
---|
STATE_READY | |
STATE_DONE | |
STATE_RUNNING | |
STATE_CANCELLED | |
◆ ~TaskControl()
Nice::TaskControl::~TaskControl |
( |
| ) |
|
|
pure virtual |
◆ cancelTask()
void Nice::TaskControl::cancelTask |
( |
| ) |
|
|
virtual |
◆ changeStateTo()
void Nice::TaskControl::changeStateTo |
( |
State |
newState | ) |
|
|
private |
◆ executeTask()
void Nice::TaskControl::executeTask |
( |
| ) |
|
|
virtual |
◆ goToRunningStateIfPossible()
void Nice::TaskControl::goToRunningStateIfPossible |
( |
| ) |
|
|
private |
◆ init()
void Nice::TaskControl::init |
( |
| ) |
|
initializes the object.
- Note
- this method has to be called after setTask(TaskPtr).
◆ isCancelled()
bool Nice::TaskControl::isCancelled |
( |
| ) |
|
|
virtual |
◆ isDone()
bool Nice::TaskControl::isDone |
( |
| ) |
|
|
virtual |
◆ isEndOfTask()
bool Nice::TaskControl::isEndOfTask |
( |
| ) |
|
|
private |
◆ isTaskStillExecutable()
bool Nice::TaskControl::isTaskStillExecutable |
( |
| ) |
|
|
private |
◆ setTask()
void Nice::TaskControl::setTask |
( |
TaskPtr |
task | ) |
|
|
protected |
◆ waitUntilEndOfTask()
void Nice::TaskControl::waitUntilEndOfTask |
( |
| ) |
|
|
virtual |
◆ state_
volatile State Nice::TaskControl::state_ |
|
private |
◆ stateChanging_
◆ task_
The documentation for this class was generated from the following files:
- TwiceAsNice/nice/src/libNice/Nice/App/servicewatchdog/TaskControl.h
- TwiceAsNice/nice/src/libNice/Nice/App/servicewatchdog/TaskControl.cc