Static Public Member Functions | |
| static int | getNativePriority (long cpPr) |
Public Attributes | |
| int | w32Priority |
Static Public Attributes | |
| static ThreadPriorityStr | priorities [] |
| static long | normalPriority = 3 |
| static long | len = 7 |
Definition at line 166 of file thread_w32.cpp.
| static int ThreadPriorityStr::getNativePriority | ( | long | cpPr | ) | [inline, static] |
Definition at line 172 of file thread_w32.cpp.
References len, normalPriority, priorities, and w32Priority.
00173 { 00174 int res = cpPr + normalPriority; 00175 if( res < 0 ) res = 0; 00176 if( res >= len ) res = len - 1; 00177 return( priorities[res].w32Priority ); 00178 }
Initial value:
{
THREAD_PRIORITY_TIME_CRITICAL,
THREAD_PRIORITY_HIGHEST,
THREAD_PRIORITY_ABOVE_NORMAL,
THREAD_PRIORITY_NORMAL,
THREAD_PRIORITY_BELOW_NORMAL,
THREAD_PRIORITY_LOWEST,
THREAD_PRIORITY_IDLE
}
Definition at line 168 of file thread_w32.cpp.
Referenced by getNativePriority().
long ThreadPriorityStr::normalPriority = 3 [static] |
long ThreadPriorityStr::len = 7 [static] |
1.5.5