UTThread.h File Reference

Go to the source code of this file.

Classes

class  Thread_t
 Thread class. More...

Typedefs

typedef uint8 thread_priority_t

Functions

thread_id_t current_thread_id ()

Variables

const thread_priority_t eTHREADPRI_idle = 1
const thread_priority_t eTHREADPRI_very_low_min = 2
const thread_priority_t eTHREADPRI_very_low = 13
const thread_priority_t eTHREADPRI_low_min = 25
const thread_priority_t eTHREADPRI_low = 37
const thread_priority_t eTHREADPRI_normal_min = 50
const thread_priority_t eTHREADPRI_normal = 62
const thread_priority_t eTHREADPRI_above_normal_min = 75
const thread_priority_t eTHREADPRI_above_normal = 87
const thread_priority_t eTHREADPRI_gui_min = 100
const thread_priority_t eTHREADPRI_gui = 112
const thread_priority_t eTHREADPRI_above_gui_min = 125
const thread_priority_t eTHREADPRI_above_gui = 137
const thread_priority_t eTHREADPRI_high_min = 150
const thread_priority_t eTHREADPRI_high = 167
const thread_priority_t eTHREADPRI_very_high_min = 175
const thread_priority_t eTHREADPRI_very_high = 187
const thread_priority_t eTHREADPRI_time_critical_min = 200
const thread_priority_t eTHREADPRI_real_time_min = 225
const thread_priority_t eTHREADPRI_kernel_real_time_min = 240

Typedef Documentation

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.


Function Documentation

thread_id_t current_thread_id (  ) 

Returns the current thread ID.


Variable Documentation

Definition at line 65 of file UTThread.h.

Definition at line 66 of file UTThread.h.

Definition at line 67 of file UTThread.h.

Definition at line 68 of file UTThread.h.

Definition at line 69 of file UTThread.h.

Definition at line 70 of file UTThread.h.

Definition at line 71 of file UTThread.h.

Definition at line 72 of file UTThread.h.

Definition at line 73 of file UTThread.h.

Definition at line 74 of file UTThread.h.

Definition at line 75 of file UTThread.h.

Definition at line 76 of file UTThread.h.

Definition at line 77 of file UTThread.h.

Definition at line 78 of file UTThread.h.

Definition at line 79 of file UTThread.h.

Definition at line 80 of file UTThread.h.

Definition at line 81 of file UTThread.h.

Definition at line 82 of file UTThread.h.

Definition at line 83 of file UTThread.h.

Definition at line 84 of file UTThread.h.


Generated on Tue Dec 14 22:35:06 2010 for UT library by  doxygen 1.6.1