AndroMeta  2.0.0
Public Member Functions | Static Public Member Functions
Meta::MThread Class Reference

A thread class which allows threads to be spawned and controlled. More...

#include <MThread.h>

List of all members.

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 ()

Detailed Description

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 & Destructor Documentation

Constructor.

virtual Meta::MThread::~MThread ( ) [virtual]

Destructor.


Member Function Documentation

Wait for this thread to exit (join).

uint64_t Meta::MThread::id ( ) const
Returns:
This thread's unique id.
static bool Meta::MThread::isMainThread ( ) [static]
Returns:
true if the caller is the main thread.
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]
Returns:
The thread id of the caller.

The documentation for this class was generated from the following file: