Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

Semaphore Class Reference

List of all members.

Public Member Functions

int destroy ()
SemaphoreHandlegetHandle ()
int init (int n)
int isInitialized ()
int lock (u_long id=0)
 Semaphore (int n)
int unlock (u_long id=0)
 ~Semaphore ()

Private Attributes

int initialized
SemaphoreHandle semaphore

Constructor & Destructor Documentation

Semaphore::Semaphore int  n  ) 
 

Constructor for the semaphore class.

Semaphore::~Semaphore  ) 
 

Destroy the object.


Member Function Documentation

int Semaphore::destroy  ) 
 

Destroy the semaphore.

SemaphoreHandle* Semaphore::getHandle  ) 
 

int Semaphore::init int  n  ) 
 

Initialize the semaphore.

int Semaphore::isInitialized  ) 
 

int Semaphore::lock u_long  id = 0  ) 
 

Lock the semaphore (p).

int Semaphore::unlock u_long  id = 0  ) 
 

Unlock the semaphore access (n).

Parameters:
id  id


Member Data Documentation

int Semaphore::initialized [private]
 

SemaphoreHandle Semaphore::semaphore [private]
 


Generated on Mon Jun 16 13:47:19 2008 for MyServer by  doxygen 1.3.9.1