![]() |
BoB robotics
The Brains on Board robotics library
|
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. | |
A basic C++ semaphore class.
A C++11 semaphore implementation (after: https://stackoverflow.com/questions/4792449/c0x-has-no-semaphores-how-to-synchronize-threads).