_NUTTHREADINFO Struct Reference
[Thread ManagementThread Management]

Thread information structure. More...

Collaboration diagram for _NUTTHREADINFO:

Collaboration graph
[legend]

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, pppc/pppc.c, and tcps/tcps.c.

Definition at line 169 of file thread.h.


Field Documentation

NUTTHREADINFO* _NUTTHREADINFO::td_next

Linked list of all threads.

Examples:
httpd/httpserv.c, pppc/pppc.c, and tcps/tcps.c.

Definition at line 170 of file thread.h.

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

NUTTHREADINFO* _NUTTHREADINFO::td_qnxt

Linked list of all queued thread.

Definition at line 171 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 172 of file thread.h.

Referenced by NutEventPostAsync(), NutEventTimeout(), NutThreadAddPriQueue(), NutThreadRemoveQueue(), and NutThreadResume().

char _NUTTHREADINFO::td_name[9]

Name of this thread.

Examples:
httpd/httpserv.c, pppc/pppc.c, and tcps/tcps.c.

Definition at line 173 of file thread.h.

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

uint8_t _NUTTHREADINFO::td_state

Operating state. One of TDS_.

Examples:
pppc/pppc.c, and tcps/tcps.c.

Definition at line 174 of file thread.h.

Referenced by NutEventPostAsync(), NutEventTimeout(), NutEventWait(), NutSleep(), NutThreadCreate(), NutThreadSetPriority(), NutThreadSwitch(), and ProcessRequests().

uintptr_t _NUTTHREADINFO::td_sp

Stack pointer.

Examples:
pppc/pppc.c, and tcps/tcps.c.

Definition at line 175 of file thread.h.

Referenced by NutThreadCreate(), NutThreadSwitch(), and ProcessRequests().

uint8_t _NUTTHREADINFO::td_priority

Priority level. 0 is highest priority.

Examples:
pppc/pppc.c, and tcps/tcps.c.

Definition at line 176 of file thread.h.

Referenced by NutThreadAddPriQueue(), NutThreadCreate(), NutThreadSetPriority(), and ProcessRequests().

uint8_t* _NUTTHREADINFO::td_memory

Pointer to heap memory used for stack.

Examples:
pppc/pppc.c, and tcps/tcps.c.

Definition at line 177 of file thread.h.

Referenced by NutThreadCreate(), NutThreadDestroy(), and ProcessRequests().

HANDLE _NUTTHREADINFO::td_timer

Event timer.

Examples:
pppc/pppc.c, and tcps/tcps.c.

Definition at line 178 of file thread.h.

Referenced by NutEventPostAsync(), NutEventTimeout(), NutEventWait(), NutSleep(), NutThreadCreate(), and ProcessRequests().

volatile HANDLE _NUTTHREADINFO::td_queue

Root entry of the waiting queue.

Definition at line 179 of file thread.h.

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


The documentation for this struct was generated from the following file:
© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/