CSemaphore Class Reference

wrapper class for unnamed semaphores More...

#include <Semaphore.H>

Inheritance diagram for CSemaphore:

Inheritance graph
[legend]
Collaboration diagram for CSemaphore:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CSemaphore (const unsigned int my_resource_counter)
 ~CSemaphore ()
void post ()
void wait ()
bool trywait ()
int getvalue ()

Private Attributes

sem_t resource_counter


Detailed Description

wrapper class for unnamed semaphores

Definition at line 57 of file Semaphore.H.


Constructor & Destructor Documentation

CSemaphore::CSemaphore ( const unsigned int  my_resource_counter  )  [inline]

Definition at line 62 of file Semaphore.H.

References resource_counter.

CSemaphore::~CSemaphore (  )  [inline]

Definition at line 69 of file Semaphore.H.

References resource_counter.


Member Function Documentation

void CSemaphore::post (  )  [inline]

Definition at line 74 of file Semaphore.H.

References resource_counter.

Referenced by DynamicRelations::IstreamPool::release_istream().

void CSemaphore::wait (  )  [inline]

Definition at line 78 of file Semaphore.H.

References resource_counter.

Referenced by DynamicRelations::IstreamPool::acquire_istream().

bool CSemaphore::trywait (  )  [inline]

Definition at line 82 of file Semaphore.H.

References errno, and resource_counter.

Referenced by DynamicRelations::IstreamPool::acquire_istream().

int CSemaphore::getvalue (  )  [inline]

Definition at line 88 of file Semaphore.H.

References resource_counter.


Member Data Documentation

sem_t CSemaphore::resource_counter [private]

Definition at line 60 of file Semaphore.H.

Referenced by CSemaphore(), getvalue(), post(), trywait(), wait(), and ~CSemaphore().


The documentation for this class was generated from the following file:
Generated on Wed Nov 7 23:31:28 2007 for Qsieve by  doxygen 1.5.4