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

Os Class Reference

#include <os.h>

Inheritance diagram for Os:

trtOs List of all members.

Public Member Functions

 Os ()
virtual ~Os ()
virtual osTaskcreateTask (void(*f)(void *), void *a)=0
virtual osMutexcreateMutex (bool locked)=0
virtual osSemaphorecreateSemaphore (int credit)=0
void setDeadlockHandler (void(*f)())
void setDeadlockHandler (void(*f)(void *), void *a)
bool deadlockHandler ()

Private Attributes

void(* deadlockFnc )()
void(* deadlockFncA )(void *)
void * deadlockArg

Constructor & Destructor Documentation

Os::Os  ) 
 

Definition at line 14 of file os.cc.

References TaskImpl::boot.

Os::~Os  )  [virtual]
 

Definition at line 22 of file os.cc.

References TaskImpl::boot.


Member Function Documentation

virtual osMutex* Os::createMutex bool  locked  )  [pure virtual]
 

Implemented in trtOs.

Referenced by MutexImpl::MutexImpl().

virtual osSemaphore* Os::createSemaphore int  credit  )  [pure virtual]
 

Implemented in trtOs.

Referenced by SemaphoreImpl::SemaphoreImpl().

virtual osTask* Os::createTask void(*  f)(void *),
void *  a
[pure virtual]
 

Implemented in trtOs.

Referenced by TaskImpl::TaskImpl().

bool Os::deadlockHandler  ) 
 

Definition at line 39 of file os.cc.

References deadlockArg, deadlockFnc, and deadlockFncA.

Referenced by trt_trap().

void Os::setDeadlockHandler void(*  f)(void *),
void *  a
 

Definition at line 33 of file os.cc.

References deadlockArg, and deadlockFncA.

void Os::setDeadlockHandler void(*  f)()  ) 
 

Definition at line 27 of file os.cc.

References deadlockArg, and deadlockFnc.

Referenced by handler1(), handler2(), and cosyNetwork::start().


Member Data Documentation

void* Os::deadlockArg [private]
 

Definition at line 35 of file os.h.

Referenced by deadlockHandler(), and setDeadlockHandler().

void(* Os::deadlockFnc)() [private]
 

Referenced by deadlockHandler(), and setDeadlockHandler().

void(* Os::deadlockFncA)(void*) [private]
 

Referenced by deadlockHandler(), and setDeadlockHandler().


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