|
automotive-message-broker
0.14.803
|
Encapsulation of the POSIX thread. More...
#include <thread.h>
Public Member Functions | |
| virtual void | run ()=0 |
| virtual bool | start () |
| bool | setPriority (int priority) |
| virtual void | stop () |
| bool | restart () |
Protected Member Functions | |
| bool | isRunnable (long miliseconds=0) |
Encapsulation of the POSIX thread.
Supports starting, stopping, restarting and thread status checking.
|
protected |
Gets runnable status of current thread. Sleeps calling thread for a specified time.
| miliseconds | Time in miliseconds. 0 means no sleep. |
Example
|
inline |
Restarts the thread.
|
pure virtual |
Method to be executed in this thread. Has to be overwritten.
|
virtual |
|
virtual |
Stops the thread
Reimplemented in CANSocketReader.
1.8.2