TCB Struct Reference
[MultitaskingKernel]

#include <task.h>


Data Fields

char * stack
char * stacktop
int stacksize
int priority
int status
unsigned misc
unsigned TimeStamp
unsigned TcbSwaps
int timeout
char * name
struct tcb * next
struct tcb * list


Detailed Description

Definition of a Task Control Block (TCB)

Definition at line 36 of file task.h.


Field Documentation

char* TCB::stack

points to current position in stack

Definition at line 37 of file task.h.

Referenced by CreateTask().

char* TCB::stacktop

points to the end of the stack

Definition at line 38 of file task.h.

Referenced by CreateTask().

int TCB::stacksize

SIZE of the stack in words

Definition at line 39 of file task.h.

Referenced by CreateTask().

int TCB::priority

task priority

Definition at line 40 of file task.h.

Referenced by CreateTask().

int TCB::status

task status, set by semaphore mostly

Definition at line 41 of file task.h.

Referenced by BQget(), BQPut(), DeleteSemaphore(), PendSemaphore(), PostSemaphore(), PostSemaphoreIrq(), PostSemaphoreWithData(), and TimerTicker().

unsigned TCB::misc

misc data user defined

Definition at line 42 of file task.h.

Referenced by PostSemaphoreWithData().

unsigned TCB::TimeStamp

system time stamp, set when swapped

Definition at line 43 of file task.h.

Referenced by BQget(), CreateTask(), ExitInterrupt(), PendSemaphore(), and Yeild().

unsigned TCB::TcbSwaps

number of times tasks swapped in

Definition at line 44 of file task.h.

Referenced by CreateTask().

int TCB::timeout

timeout counter to trigger event

Definition at line 45 of file task.h.

Referenced by PendSemaphore(), and TimerTicker().

char* TCB::name

name of task

Definition at line 46 of file task.h.

Referenced by CreateTask().

struct tcb* TCB::next [read]

Definition at line 47 of file task.h.

Referenced by CreateTask(), DeleteSemaphore(), PendSemaphore(), PostSemaphore(), PostSemaphoreIrq(), PostSemaphoreWithData(), and TimerTicker().

struct tcb* TCB::list [read]

master linked list of tasks

Definition at line 48 of file task.h.

Referenced by CreateTask().


The documentation for this struct was generated from the following file:
Generated on Sun Aug 24 17:44:09 2008 for FrankenRTOS by  doxygen 1.5.3