#include <CThread.h>
Public Member Functions | |
cThread () | |
Constructor of cThread. | |
~cThread () | |
Destructor of cThread. | |
void | set (void(*a_function)(void), CThreadPriority a_level) |
Set the thread parameters. | |
void | setPriority (CThreadPriority a_level) |
Set the thread priority level. | |
CThreadPriority | getPriority () |
Get the current thread priority level. | |
Protected Attributes | |
DWORD | m_threadId |
Thread handle. | |
void * | m_function |
Pointer to thread function. | |
CThreadPriority | m_priorityLevel |
Thread priority level. |
void cThread::set | ( | void(*)(void) | a_function, | |
CThreadPriority | a_level | |||
) |
Set the thread parameters.
Creates a thread to execute within the address space of the calling process. Parameters include a pointer to the function and its priority level.
a_function | Pointer to thread function | |
a_level | Priority level of thread. |
void cThread::setPriority | ( | CThreadPriority | a_level | ) |
Set the thread priority level.
Adjust the priority level of the thread.
a_level | Priority level of the thread |