|
My Project
|
cross platform thread. More...
#include <Thread.hpp>
Public Member Functions | |
| Thread () | |
| Constructor. | |
| virtual | ~Thread () |
| Destructor, Warning, it waits the end of the current thread. | |
| bool | start () |
| start the thread More... | |
| bool | isRunning () const |
| Fast look up to know if a thread is running. More... | |
| bool | wait () const |
| Wait the end of a thread. More... | |
| virtual void | run ()=0 |
| the function is called when thread is starting You must implement this methode! | |
| bool | kill () |
cross platform thread.
Thread th; th.start(); // start thread ... th.isRunning(); // fast look up ... th.wait(); // wait thread end
All methods may be inline by the compiler
|
inline |
Fast look up to know if a thread is running.
|
inline |
start the thread
|
inline |
Wait the end of a thread.
1.8.12