Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages | Examples

_NUTTHREADINFO Struct Reference
[Thread ManagementThread Management]

#include <sys/thread.h>

Collaboration diagram for _NUTTHREADINFO:

Collaboration graph
[legend]

Detailed Description

Thread information structure.
Examples:

httpd/httpserv.c, portdio/portdio.c, and tcps/tcps.c.


Data Fields

NUTTHREADINFO *volatile td_next
 Linked list of all threads.

NUTTHREADINFOtd_qnxt
 Linked list of all queued thread.

u_char td_name [9]
 Name of this thread.

u_char td_state
 Operating state.

uptr_t td_sp
 Stack pointer.

u_char td_priority
 Priority level.

u_chartd_memory
 Pointer to heap memory used for stack.

HANDLE td_timer
 Event timer.

HANDLE td_queue
 Root entry of the waiting queue.


Field Documentation

u_char _NUTTHREADINFO::td_priority
 

Priority level.

0 is highest priority.

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

u_char _NUTTHREADINFO::td_state
 

Operating state.

One of TDS_

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


© 2000-2003 by egnite Software GmbH - visit http://www.ethernut.de/