Public Member Functions | Private Attributes | List of all members
micros_swarm::Semaphore Class Reference

#include <semaphore.h>

Public Member Functions

void P ()
 
 Semaphore (int value)
 
 Semaphore (const Semaphore &)=delete
 
void V ()
 

Private Attributes

boost::condition_variable condition_
 
boost::mutex mutex_
 
int value_
 

Detailed Description

Definition at line 30 of file semaphore.h.

Constructor & Destructor Documentation

micros_swarm::Semaphore::Semaphore ( int  value)
inline

Definition at line 32 of file semaphore.h.

micros_swarm::Semaphore::Semaphore ( const Semaphore )
delete

Member Function Documentation

void micros_swarm::Semaphore::P ( )
inline

Definition at line 35 of file semaphore.h.

void micros_swarm::Semaphore::V ( )
inline

Definition at line 45 of file semaphore.h.

Member Data Documentation

boost::condition_variable micros_swarm::Semaphore::condition_
private

Definition at line 55 of file semaphore.h.

boost::mutex micros_swarm::Semaphore::mutex_
private

Definition at line 54 of file semaphore.h.

int micros_swarm::Semaphore::value_
private

Definition at line 53 of file semaphore.h.


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


micros_swarm
Author(s):
autogenerated on Mon Jun 10 2019 14:02:06