UNIVERS
15.3
UNIVERS base processing software API
|
#include <sem.hpp>
Public Member Functions | |
Sem (int) | |
virtual | ~Sem () |
virtual dcf::error_t | allocate (int rn)=0 |
virtual dcf::error_t | release (int rn)=0 |
virtual dcf::error_t | available (int &rn) const =0 |
dcf::error_t | operator-- () |
dcf::error_t | operator++ () |
Abstract semaphore object.
|
inline |
Constructor with number of resources provided.
|
inlinevirtual |
Destructs object.
|
pure virtual |
Allocates provided number of resources or waits if all resources are allocated.
Should be reimplemented.
Implemented in dcf::UnnamedSem.
|
pure virtual |
Gets number of free resources. Should be reimplemented.
Implemented in dcf::UnnamedSem.
|
inline |
Releases one resource.
|
inline |
Allocates one resource.
|
pure virtual |