#include <Semaphore.H>


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 |
Definition at line 57 of file Semaphore.H.
| CSemaphore::CSemaphore | ( | const unsigned int | my_resource_counter | ) | [inline] |
| CSemaphore::~CSemaphore | ( | ) | [inline] |
| 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] |
sem_t CSemaphore::resource_counter [private] |
Definition at line 60 of file Semaphore.H.
Referenced by CSemaphore(), getvalue(), post(), trywait(), wait(), and ~CSemaphore().
1.5.4