BoB robotics
The Brains on Board robotics library
BoBRobotics::Semaphore Class Reference

A basic C++ semaphore class. More...

#include <semaphore.h>

Public Member Functions

void notify ()
 Stop wait() blocking on another thread if it's running.
 
void wait ()
 Wait for notify() to be invoked by another thread.
 
void waitOnce ()
 Wait for notify() to be invoked by another thread, but do not reset.
 

Detailed Description

A basic C++ semaphore class.

A C++11 semaphore implementation (after: https://stackoverflow.com/questions/4792449/c0x-has-no-semaphores-how-to-synchronize-threads).


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