C12Adapter Opensource C++ Interface
|
Thread instance that attaches to the current thread to allow manipulations with the thread parameters. More...
Public Member Functions | |
MThreadCurrent () | |
Creates object and immediately attaches it to the current thread. More... | |
virtual | ~MThreadCurrent () |
Destroys the current thread object, but does not influence the actual thread itself. | |
![]() | |
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 MThreadCurrent * | GetMain () |
Access the main thread, static and global method. | |
static unsigned long | GetStaticCurrentThreadId () |
Static version of current thread identifier, unique per machine. More... | |
static InternalHandleType | GetStaticCurrentThreadInternalHandle () |
Static version of current thread handle property. More... | |
![]() | |
static void | Relinquish () |
Release the rest of our time slice letting the other threads run. | |
Additional Inherited Members | |
![]() | |
MThread (InternalHandleType thread=0) | |
Operating system dependent internal handle type. More... | |
![]() | |
volatile InternalHandleType | m_thread |
Thread handle. | |
Thread instance that attaches to the current thread to allow manipulations with the thread parameters.
The majority of the functionality is achieved with MThread parent services.
It is recommended that there is only one thread object created per actual thread.
MThreadCurrent::MThreadCurrent | ( | ) |
Creates object and immediately attaches it to the current thread.
|
inlinestatic |
Static version of current thread identifier, unique per machine.
This is a shortcut for MThreadCurrent::GetThreadId.
|
inlinestatic |
Static version of current thread handle property.
This is a shortcut for MThreadCurrent::GetInternalHandle.