#include <Semaphore.H>
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 |
Definition at line 98 of file Semaphore.H.
CNamedSemaphore::CNamedSemaphore | ( | const char *const | name, | |
const unsigned int | my_resource_counter | |||
) | [inline] |
CNamedSemaphore::~CNamedSemaphore | ( | ) | [inline] |
void CNamedSemaphore::post | ( | ) | [inline] |
Definition at line 116 of file Semaphore.H.
References p_resource_counter.
Referenced by CConditionalNamedSemaphorePostAtDestruction::~CConditionalNamedSemaphorePostAtDestruction().
void CNamedSemaphore::wait | ( | ) | [inline] |
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] |
sem_t* CNamedSemaphore::p_resource_counter [private] |
Definition at line 101 of file Semaphore.H.
Referenced by CNamedSemaphore(), getvalue(), post(), trywait(), wait(), and ~CNamedSemaphore().