Thread::SetThreadPriority
Defined in:
Sets the priority of a thread.
C4Threads.h
Prototype
void SetThreadPriority(int32 priority);
Parameters
priority |
The new thread priority. |
Description
The SetThreadPriority
function changes the priority of a thread to the value specified by the priority
parameter. This value can be one of the following constants.
kThreadPriorityLow |
The thread has low priority. |
kThreadPriorityNormal |
The thread has normal priority. |
kThreadPriorityHigh |
The thread has high priority. If this priority is used, then the thread should block often so that lower-priority threads can run. |
kThreadPriorityCritical |
The thread has critical priority. If this priority is used, then the thread should be in the blocked state most of the time. |
See Also