Thread information structure. More...
#include <sys/thread.h>
Data Fields | |
NUTTHREADINFO * | td_next |
Linked list of all threads. | |
NUTTHREADINFO * | td_qnxt |
Linked list of all queued thread. | |
volatile unsigned int | td_qpec |
Pending event counter. | |
char | td_name [9] |
Name of this thread. | |
uint8_t | td_state |
Operating state. One of TDS_. | |
uintptr_t | td_sp |
Stack pointer. | |
uint8_t | td_priority |
Priority level. 0 is highest priority. | |
uint8_t * | td_memory |
Pointer to heap memory used for stack. | |
HANDLE | td_timer |
Event timer. | |
volatile HANDLE | td_queue |
Root entry of the waiting queue. |
Linked list of all threads.
Definition at line 174 of file thread.h.
Referenced by GetThreadByName(), NutThreadCreate(), NutThreadKill(), and NutThreadResume().
Linked list of all queued thread.
Definition at line 175 of file thread.h.
Referenced by NutEventPostAsync(), NutEventTimeout(), NutSleep(), NutThreadAddPriQueue(), NutThreadRemoveQueue(), and NutThreadYield().
volatile unsigned int _NUTTHREADINFO::td_qpec |
Pending event counter.
Definition at line 176 of file thread.h.
Referenced by NutEventPostAsync(), NutEventTimeout(), NutThreadAddPriQueue(), NutThreadRemoveQueue(), and NutThreadResume().
char _NUTTHREADINFO::td_name[9] |
Name of this thread.
Definition at line 177 of file thread.h.
Referenced by GetThreadByName(), NutDumpThreadList(), NutDumpThreadQueue(), and NutThreadCreate().
Operating state. One of TDS_.
Definition at line 178 of file thread.h.
Referenced by NutEventPostAsync(), NutEventTimeout(), NutEventWait(), NutSleep(), NutThreadCreate(), NutThreadSetPriority(), and NutThreadSwitch().
Stack pointer.
Definition at line 179 of file thread.h.
Referenced by NutThreadCreate(), and NutThreadSwitch().
Priority level. 0 is highest priority.
Definition at line 180 of file thread.h.
Referenced by NutThreadAddPriQueue(), NutThreadCreate(), and NutThreadSetPriority().
Pointer to heap memory used for stack.
Definition at line 181 of file thread.h.
Referenced by NutThreadCreate(), and NutThreadDestroy().
Event timer.
Definition at line 182 of file thread.h.
Referenced by NutEventPostAsync(), NutEventTimeout(), NutEventWait(), NutSleep(), and NutThreadCreate().
volatile HANDLE _NUTTHREADINFO::td_queue |
Root entry of the waiting queue.
Definition at line 183 of file thread.h.
Referenced by NutSleep(), NutThreadAddPriQueue(), NutThreadCreate(), NutThreadRemoveQueue(), and NutThreadResume().