C12Adapter Opensource C++ Interface
|
Operating system independent abstract thread. More...
Public Member Functions | |
virtual | ~MThread () |
Destructor, destroys the thread object. | |
unsigned long | GetThreadId () const |
Get thread identifier, a number that is guaranteed to be unique per thread. | |
InternalHandleType | GetInternalHandle () const volatile |
Get thread handle, operating system dependent thread object manipulator. | |
Static Public Member Functions | |
static void | Relinquish () |
Release the rest of our time slice letting the other threads run. | |
Protected Member Functions | |
MThread (InternalHandleType thread=0) | |
Operating system dependent internal handle type. More... | |
Protected Attributes | |
volatile InternalHandleType | m_thread |
Thread handle. | |
Operating system independent abstract thread.
No instances can be created, look at MThreadWorker and MThreadCurrent for possible concrete classes.
Due to behavior, it is recommended that there is only one thread object created per actual thread.
Because it is common to derive concrete objects from thread, many thread services and attributes have the word Thread in their names.
|
protected |
Operating system dependent internal handle type.
Thread protected constructor. Its behavior is specific to the concrete object which inherits from it.