TThreadPriority - C++ Builder
2020-06-13 本文已影响0人
玄坴
C++ Builder 参考手册 ➙ System::Classes ➙ TThreadPriority
TThreadPriority 是 TThread 的 Priority 属性的类型,线程的优先级。
- 头文件:
#include <System.Classes.hpp> - 命名空间:
System::Classes - 类型定义:
enum TThreadPriority : unsigned char
{
tpIdle,
tpLowest,
tpLower,
tpNormal,
tpHigher,
tpHighest,
tpTimeCritical
};
| 线程优先级 | 说明 |
|---|---|
| tpIdle | 最低 |
| tpLowest | 低 |
| tpLower | 低于标准 |
| tpNormal | 标准 |
| tpHigher | 高于标准 |
| tpHighest | 高 |
| tpTimeCritical | 最高 |
参考:
C++ Builder 参考手册 ➙ System::Classes ➙ TThreadPriority