CNamedSemaphore Class Reference

wrapper class for named semaphores More...

#include <Semaphore.H>

Inheritance diagram for CNamedSemaphore:

Inheritance graph
[legend]
Collaboration diagram for CNamedSemaphore:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CNamedSemaphore (const char *const name, const unsigned int my_resource_counter)
 ~CNamedSemaphore ()
void post ()
void wait ()
bool trywait ()
int getvalue ()

Private Attributes

sem_t * p_resource_counter


Detailed Description

wrapper class for named semaphores

Definition at line 98 of file Semaphore.H.


Constructor & Destructor Documentation

CNamedSemaphore::CNamedSemaphore ( const char *const   name,
const unsigned int  my_resource_counter 
) [inline]

Definition at line 103 of file Semaphore.H.

References p_resource_counter.

CNamedSemaphore::~CNamedSemaphore (  )  [inline]

Definition at line 111 of file Semaphore.H.

References p_resource_counter.


Member Function Documentation

void CNamedSemaphore::post (  )  [inline]

Definition at line 116 of file Semaphore.H.

References p_resource_counter.

Referenced by CConditionalNamedSemaphorePostAtDestruction::~CConditionalNamedSemaphorePostAtDestruction().

void CNamedSemaphore::wait (  )  [inline]

Definition at line 120 of file Semaphore.H.

References p_resource_counter.

bool CNamedSemaphore::trywait (  )  [inline]

Definition at line 124 of file Semaphore.H.

References errno, and p_resource_counter.

Referenced by elliptic_curves::go().

int CNamedSemaphore::getvalue (  )  [inline]

Definition at line 130 of file Semaphore.H.

References p_resource_counter.


Member Data Documentation

sem_t* CNamedSemaphore::p_resource_counter [private]

Definition at line 101 of file Semaphore.H.

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


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