MPMA Framework 0.4
|
Thread creation and management. More...
Go to the source code of this file.
Classes | |
union | MPMA::ThreadParam |
A user-defined parameter passed to the thread procedure. More... | |
class | MPMA::Thread |
Represents a thread. More... | |
class | MPMA::ThreadPool |
A pool of pre-created threads. More... | |
Namespaces | |
namespace | MPMA |
The Base MPMA Framework. | |
Typedefs | |
typedef void(* | MPMA::ThreadFunc )(class Thread &, ThreadParam) |
A callback function for the thread's procedure. This function should monitor the IsEnding() method of the provided Thread class, and terminate if it ever returns true. | |
Enumerations | |
enum | MPMA::ThreadPriority { MPMA::THREAD_LOW, MPMA::THREAD_NORMAL, MPMA::THREAD_HIGH } |
Thread priorities. More... | |
Functions | |
void | MPMA::Sleep (nuint time) |
Causes the current thread to block for at least time (in milliseconds). 0 just forces a yield. | |
nuint | MPMA::GetThreadUniqueIdentifier () |
Gets a value that is unique to the calling thread. Any given thread will always return the same value. |
Thread creation and management.