Robotics Library  0.6.2
Public Member Functions | Private Attributes | List of all members
rl::util::Semaphore Class Reference

#include <Semaphore.h>

Public Member Functions

 Semaphore (const ::std::size_t &n)
 
virtual ~Semaphore ()
 
Semaphoreoperator++ ()
 
Semaphoreoperator-- ()
 
void acquire ()
 
void release ()
 
bool tryAcquire ()
 

Private Attributes

sem_t semaphore
 

Constructor & Destructor Documentation

◆ Semaphore()

rl::util::Semaphore::Semaphore ( const ::std::size_t &  n)
inlineexplicit

◆ ~Semaphore()

virtual rl::util::Semaphore::~Semaphore ( )
inlinevirtual

Member Function Documentation

◆ acquire()

void rl::util::Semaphore::acquire ( )
inline

◆ operator++()

Semaphore& rl::util::Semaphore::operator++ ( )
inline

◆ operator--()

Semaphore& rl::util::Semaphore::operator-- ( )
inline

◆ release()

void rl::util::Semaphore::release ( )
inline

◆ tryAcquire()

bool rl::util::Semaphore::tryAcquire ( )
inline

Member Data Documentation

◆ semaphore

sem_t rl::util::Semaphore::semaphore
private

The documentation for this class was generated from the following file: