|
AndroMeta
2.0.0
|
A thread class which allows threads to be spawned and controlled. More...
#include <MThread.h>
Public Member Functions | |
| MThread () | |
| virtual | ~MThread () |
| void | start (double priority=0.5) |
| void | await () |
| uint64_t | id () const |
| virtual void | run ()=0 |
Static Public Member Functions | |
| static uint64_t | threadId () |
| static bool | isMainThread () |
A thread class which allows threads to be spawned and controlled.
The use of MProc's is preferred over using threads directly whenever possible.
Constructor.
| virtual Meta::MThread::~MThread | ( | ) | [virtual] |
Destructor.
| void Meta::MThread::await | ( | ) |
Wait for this thread to exit (join).
| uint64_t Meta::MThread::id | ( | ) | const |
| static bool Meta::MThread::isMainThread | ( | ) | [static] |
| virtual void Meta::MThread::run | ( | ) | [pure virtual] |
Application-specific run method.
| void Meta::MThread::start | ( | double | priority = 0.5 | ) |
Start the thread running with specified priority [0..1].
| static uint64_t Meta::MThread::threadId | ( | ) | [static] |
1.7.6.1