Go to the source code of this file.
typedef uint8 thread_priority_t |
Thread priority. The target platform does not necessarily support a full 8-bit granularity. DO NOT use thread priorities other than normal without good cause, and especially so for the main thread.
The thread priorities are generally as follows:
0: reserved for system idle thread(s), do not use
1: idle
2-24: very low
25-49: low
50-74: normal
75-99: above normal
100-124: GUI responsiveness
125-149: above GUI
150-174: high
175-199: very high
200-224: time critical
225-239: real time
240-255: kernel only real time
Under windows, use of eTHREADPRI_time_critical_min or above can interfere with serial port driver function (the serial port driver will then be running at an equal or lower priority and unable to respond in time, either to service the UART FIFO or to flow off the peer device), eTHREADPRI_kernel_real_time_min-255 should be reserved for kernel threads.
Definition at line 63 of file UTThread.h.
thread_id_t current_thread_id | ( | ) |
Returns the current thread ID.
const thread_priority_t eTHREADPRI_idle = 1 |
Definition at line 65 of file UTThread.h.
const thread_priority_t eTHREADPRI_very_low_min = 2 |
Definition at line 66 of file UTThread.h.
const thread_priority_t eTHREADPRI_very_low = 13 |
Definition at line 67 of file UTThread.h.
const thread_priority_t eTHREADPRI_low_min = 25 |
Definition at line 68 of file UTThread.h.
const thread_priority_t eTHREADPRI_low = 37 |
Definition at line 69 of file UTThread.h.
const thread_priority_t eTHREADPRI_normal_min = 50 |
Definition at line 70 of file UTThread.h.
const thread_priority_t eTHREADPRI_normal = 62 |
Definition at line 71 of file UTThread.h.
const thread_priority_t eTHREADPRI_above_normal_min = 75 |
Definition at line 72 of file UTThread.h.
const thread_priority_t eTHREADPRI_above_normal = 87 |
Definition at line 73 of file UTThread.h.
const thread_priority_t eTHREADPRI_gui_min = 100 |
Definition at line 74 of file UTThread.h.
const thread_priority_t eTHREADPRI_gui = 112 |
Definition at line 75 of file UTThread.h.
const thread_priority_t eTHREADPRI_above_gui_min = 125 |
Definition at line 76 of file UTThread.h.
const thread_priority_t eTHREADPRI_above_gui = 137 |
Definition at line 77 of file UTThread.h.
const thread_priority_t eTHREADPRI_high_min = 150 |
Definition at line 78 of file UTThread.h.
const thread_priority_t eTHREADPRI_high = 167 |
Definition at line 79 of file UTThread.h.
const thread_priority_t eTHREADPRI_very_high_min = 175 |
Definition at line 80 of file UTThread.h.
const thread_priority_t eTHREADPRI_very_high = 187 |
Definition at line 81 of file UTThread.h.
const thread_priority_t eTHREADPRI_time_critical_min = 200 |
Definition at line 82 of file UTThread.h.
const thread_priority_t eTHREADPRI_real_time_min = 225 |
Definition at line 83 of file UTThread.h.
const thread_priority_t eTHREADPRI_kernel_real_time_min = 240 |
Definition at line 84 of file UTThread.h.