|
| TestThread (const std::string &thread_id, ctd::mptk::MessageBus &message_bus, const double period=0.1) |
|
| ~TestThread () |
|
void | UserLogic () |
| User provided business logic. The UserLogic method need not execute an internal loop. It is taken care of by the Control() method. Instead the UserLogic() method should (normally) execute it business logic, and return control to the Control() method, which will take of the thread management. More...
|
|
| Thread (const std::string &thread_id, MessageBus &message_bus, const double period=0.1) |
| Constructor method, setting up the internal members. More...
|
|
virtual | ~Thread () |
|
std::string | Id () |
| Return the thread ID. More...
|
|
void | Loop () |
| Method to invoke the user provided business logic of the thread. More...
|
|
void | Start () |
| Start the thread execution. More...
|
|
void | Stop () |
| Stop the thread execution. More...
|
|
void | Pause () |
| Pause the thread execution. More...
|
|
bool | CheckExecFlag () |
| Check the Thread Execution Flag. The Thread Execution Flag shall be called regularly in the thread, at least during every internal cycle (of LogicUser()). The behavior is as follows: THREAD_EXEC_RUNNING: Return immediately with true. THREAD_EXEC_PAUSED: Wait internally for flag to change to THREAD_EXEC_RUN/_STOP. TRHEAD_EXEC_STOPPED: Return immediately with false. Thread LogicUser() shall return. More...
|
|
ThreadExecControl | GetExecFlag () const |
| Return the value of the Thread Execution Flag. More...
|
|
bool | Terminated () const |
| Returns true if thread no longer running. More...
|
|
MessageBus & | MsgBus () |
| Get acces to the MessageBus associated with this thread object. More...
|
|
std::string | Print () const |
| Generate ASCII output providing a status of the object. More...
|
|
| Thread (const std::string &thread_id, MessageBus &message_bus, const double period=0.1) |
| Constructor method, setting up the internal members. More...
|
|
virtual | ~Thread () |
|
std::string | Id () |
| Return the thread ID. More...
|
|
void | Loop () |
| Method to invoke the user provided business logic of the thread. More...
|
|
void | Start () |
| Start the thread execution. More...
|
|
void | Stop () |
| Stop the thread execution. More...
|
|
void | Pause () |
| Pause the thread execution. More...
|
|
bool | CheckExecFlag () |
| Check the Thread Execution Flag. The Thread Execution Flag shall be called regularly in the thread, at least during every internal cycle (of LogicUser()). The behavior is as follows: THREAD_EXEC_RUNNING: Return immediately with true. THREAD_EXEC_PAUSED: Wait internally for flag to change to THREAD_EXEC_RUN/_STOP. TRHEAD_EXEC_STOPPED: Return immediately with false. Thread LogicUser() shall return. More...
|
|
ThreadExecControl | GetExecFlag () const |
| Return the value of the Thread Execution Flag. More...
|
|
bool | Terminated () const |
| Returns true if thread no longer running. More...
|
|
MessageBus & | MsgBus () |
| Get acces to the MessageBus associated with this thread object. More...
|
|
std::string | Print () const |
| Generate ASCII output providing a status of the object. More...
|
|
| Thread (const std::string &thread_id, MessageBus &message_bus, const double period=0.1) |
| Constructor method, setting up the internal members. More...
|
|
virtual | ~Thread () |
|
std::string | Id () |
| Return the thread ID. More...
|
|
void | Loop () |
| Method to invoke the user provided business logic of the thread. More...
|
|
void | Start () |
| Start the thread execution. More...
|
|
void | Stop () |
| Stop the thread execution. More...
|
|
void | Pause () |
| Pause the thread execution. More...
|
|
bool | CheckExecFlag () |
| Check the Thread Execution Flag. The Thread Execution Flag shall be called regularly in the thread, at least during every internal cycle (of LogicUser()). The behavior is as follows: THREAD_EXEC_RUNNING: Return immediately with true. THREAD_EXEC_PAUSED: Wait internally for flag to change to THREAD_EXEC_RUN/_STOP. TRHEAD_EXEC_STOPPED: Return immediately with false. Thread LogicUser() shall return. More...
|
|
ThreadExecControl | GetExecFlag () const |
| Return the value of the Thread Execution Flag. More...
|
|
bool | Terminated () const |
| Returns true if thread no longer running. More...
|
|
MessageBus & | MsgBus () |
| Get acces to the MessageBus associated with this thread object. More...
|
|
std::string | Print () const |
| Generate ASCII output providing a status of the object. More...
|
|