Public Member Functions | List of all members
Semaphore Class Reference

Traditional semaphore synchronisation object. More...

#include <Semaphore.hpp>

Public Member Functions

 Semaphore (unsigned int count_=0)
 Create a semaphore object, setting an initial count if desired. More...
 
void decrement ()
 Decrement the semaphore, blocking if the count is zero. More...
 
void increment ()
 Increment the semaphore. More...
 

Detailed Description

Traditional semaphore synchronisation object.

Constructor & Destructor Documentation

◆ Semaphore()

Semaphore ( unsigned int  count_ = 0)
inlineexplicit

Create a semaphore object, setting an initial count if desired.

Member Function Documentation

◆ decrement()

void decrement ( )
inline

Decrement the semaphore, blocking if the count is zero.

◆ increment()

void increment ( )
inline

Increment the semaphore.


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