#include <Thread.h>
A simple Thread commore implementation
commore::Thread::Thread |
( |
| ) |
|
|
inline |
bool Thread::is_running |
( |
| ) |
|
- Returns
- true if thread is running
bool Thread::is_stopped |
( |
| ) |
|
- Returns
- true if thread is stopped
bool Thread::is_to_stop |
( |
| ) |
|
- Returns
- true if stop flag is true
bool Thread::request_stop |
( |
| ) |
|
Set the stop flag to true.
void Thread::run_item |
( |
| ) |
|
|
virtual |
Launched by the default run() implementation each time the the thread is triggered. So this function is designed for short action. In anny case all loop MUST have is_to_stop() as stop condition.
Set the stop flag and wait effective stop
Force thread to end wait or start a run_item
To be used ONLY in run or run_item function wait for time period OR stop flag is set OR trigger call
The documentation for this class was generated from the following files: