Nut/OS  4.10.3
API Reference
_NUTTHREADINFO Struct Reference

Thread information structure. More...

#include <sys/thread.h>

Collaboration diagram for _NUTTHREADINFO:

Data Fields

NUTTHREADINFOtd_next
 Linked list of all threads.
NUTTHREADINFOtd_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_ttd_memory
 Pointer to heap memory used for stack.
HANDLE td_timer
 Event timer.
volatile HANDLE td_queue
 Root entry of the waiting queue.

Detailed Description

Thread information structure.

Todo:
Sort items while considering alignment.
Examples:

httpd/httpserv.c.

Definition at line 173 of file thread.h.


Field Documentation

Linked list of all threads.

Examples:
httpd/httpserv.c.

Definition at line 174 of file thread.h.

Referenced by GetThreadByName(), NutThreadCreate(), NutThreadKill(), and NutThreadResume().

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().

Name of this thread.

Examples:
httpd/httpserv.c.

Definition at line 177 of file thread.h.

Referenced by GetThreadByName(), NutDumpThreadList(), NutDumpThreadQueue(), and NutThreadCreate().

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().

Root entry of the waiting queue.

Definition at line 183 of file thread.h.

Referenced by NutSleep(), NutThreadAddPriQueue(), NutThreadCreate(), NutThreadRemoveQueue(), and NutThreadResume().


The documentation for this struct was generated from the following file: