Chris O'Byrne - YAVRTOS

task_t Struct Reference

Structure describing a task. More...


Data Fields

uint8_t * stack
 

For internal use only.

Pointer to the top of the task stack


uint16_t stacklen
 

For internal use only.

Length of the task stack


uint8_t * sp
 

For internal use only.

The stack pointer as at the last time this task was suspended


uint8_t pri
 

For internal use only.

The task priority


void(* proc )(void *)
 

For internal use only.

The function that performs the tasks' activities


void(* cleanup )()
 

For internal use only.

The function to execute when the task is stopping


struct mutexstruct * owned_mutex
 

For internal use only.

The first mutex this task owns


mailbox_twaiting_on_mbox
 

For internal use only.

The mailbox we are waiting on or reading from


int16_t waiting_on_mbox_version
 

For internal use only.

The version of the mailbox that we are reading or waiting on


semaphore_twaiting_semaphore
 

For internal use only.

The semaphore the task is waiting on


int16_t waiting_semaphore_min_value
 

For internal use only.

The value of the semaphore that the task is waiting on


uint8_t status
 

For internal use only.

Task status


struct taskstruct * next
 

For internal use only.

Pointer to the next task in the list



Detailed Description

Structure describing a task.

See also:
Tasks

Field Documentation

uint8_t* task_t::stack

For internal use only.

Pointer to the top of the task stack

uint16_t task_t::stacklen

For internal use only.

Length of the task stack

uint8_t* task_t::sp

For internal use only.

The stack pointer as at the last time this task was suspended

uint8_t task_t::pri

For internal use only.

The task priority

void(* task_t::proc)(void *)

For internal use only.

The function that performs the tasks' activities

void(* task_t::cleanup)()

For internal use only.

The function to execute when the task is stopping

struct mutexstruct* task_t::owned_mutex [read]

For internal use only.

The first mutex this task owns

For internal use only.

The mailbox we are waiting on or reading from

For internal use only.

The version of the mailbox that we are reading or waiting on

If this value is greater than the mailbox version, then we are waiting, otherwise we are reading

For internal use only.

The semaphore the task is waiting on

For internal use only.

The value of the semaphore that the task is waiting on

uint8_t task_t::status

For internal use only.

Task status

See also:
The possible states that a task can be in

struct taskstruct* task_t::next [read]

For internal use only.

Pointer to the next task in the list


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

YAVRTOS and YAVRTOS documentation Copyright © 2007-2008 Chris O'Byrne. Email - chris <at> obyrne <dot> com