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

trtSemaphore Class Reference

#include <trtsemaphore.h>

Inheritance diagram for trtSemaphore:

osSemaphore List of all members.

Public Member Functions

 trtSemaphore (int credit=0)
 ~trtSemaphore ()
void signal ()
void wait ()

Private Attributes

semaphore_t ps

Constructor & Destructor Documentation

trtSemaphore::trtSemaphore int  credit = 0  ) 
 

Definition at line 14 of file trtsemaphore.cc.

References ps, and sem_init().

trtSemaphore::~trtSemaphore  ) 
 

Definition at line 19 of file trtsemaphore.cc.


Member Function Documentation

void trtSemaphore::signal  )  [virtual]
 

Implements osSemaphore.

Definition at line 27 of file trtsemaphore.cc.

References ps, and sem_V().

Referenced by trtMutex::unlock().

void trtSemaphore::wait  )  [virtual]
 

Implements osSemaphore.

Definition at line 22 of file trtsemaphore.cc.

References ps, and sem_P().

Referenced by trtMutex::lock().


Member Data Documentation

semaphore_t trtSemaphore::ps [private]
 

Definition at line 27 of file trtsemaphore.h.

Referenced by signal(), trtSemaphore(), and wait().


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