#include <unnamed_sem.hpp>
|
| sem_t | m_sem |
| |
|
bool | m_is_ready |
| |
| dcf::UnnamedSem::UnnamedSem |
( |
int |
res_num | ) |
|
Constructor with number of resources provided.
By default semaphore is unlocked for all its resources.
| virtual dcf::UnnamedSem::~UnnamedSem |
( |
| ) |
|
|
virtual |
| virtual dcf::error_t dcf::UnnamedSem::allocate |
( |
int |
rn = 1 | ) |
|
|
virtual |
Allocates provided number of resources or waits if all resources are allocated.
Implements dcf::Sem.
| virtual dcf::error_t dcf::UnnamedSem::available |
( |
int & |
rn | ) |
const |
|
virtual |
Gets number of free resources.
Implements dcf::Sem.
| bool dcf::UnnamedSem::ready |
( |
| ) |
const |
|
inline |
Releases provided number of resources.
Implements dcf::Sem.
| sem_t dcf::UnnamedSem::m_sem |
|
mutableprotected |
< Unnamed semaphore reference. Is semaphore ready.
The documentation for this class was generated from the following file: