Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

trtTask Class Reference

#include <trttask.h>

Inheritance diagram for trtTask:

osTask List of all members.

Public Member Functions

 trtTask (void(*f)(void *), void *a, int s=STACKSIZE)
 ~trtTask ()
void start ()
void exit ()
void join ()
void kill ()

Private Attributes

void(* func )(void *)
void * args
int stackSize
thread_t pr

Friends

int run_trt_task (int)

Constructor & Destructor Documentation

trtTask::trtTask void(*  f)(void *),
void *  a,
int  s = STACKSIZE
 

Definition at line 16 of file trttask.cc.

trtTask::~trtTask  ) 
 

Definition at line 23 of file trttask.cc.


Member Function Documentation

void trtTask::exit  )  [virtual]
 

Implements osTask.

Definition at line 42 of file trttask.cc.

References thr_exit().

void trtTask::join  )  [virtual]
 

Implements osTask.

Definition at line 49 of file trttask.cc.

References pr, and thr_join().

void trtTask::kill  )  [virtual]
 

Implements osTask.

Definition at line 54 of file trttask.cc.

References pr, thr_destroy(), and thr_suspend().

void trtTask::start  )  [virtual]
 

Implements osTask.

Definition at line 34 of file trttask.cc.

References pr, run_trt_task(), stackSize, thr_create(), thr_set_name(), thr_stack_size(), and thr_start().


Friends And Related Function Documentation

int run_trt_task int  args  )  [friend]
 

Definition at line 28 of file trttask.cc.


Member Data Documentation

void* trtTask::args [private]
 

Definition at line 32 of file trttask.h.

Referenced by run_trt_task().

void(* trtTask::func)(void*) [private]
 

Referenced by run_trt_task().

thread_t trtTask::pr [private]
 

Definition at line 35 of file trttask.h.

Referenced by join(), kill(), and start().

int trtTask::stackSize [private]
 

Definition at line 33 of file trttask.h.

Referenced by start().


The documentation for this class was generated from the following files:
Generated on Wed Feb 15 14:52:41 2006 for yapi by doxygen 1.3.2