RAUL
0.8.0
|
Counting semaphore. More...
#include <Semaphore.hpp>
Inherits noncopyable.
Public Member Functions | |
Semaphore (unsigned int initial) | |
void | reset (unsigned int initial) |
Destroy and reset the semaphore to an initial value. More... | |
void | post () |
Increment (and signal any waiters). More... | |
void | wait () |
Wait until count is > 0, then decrement. More... | |
bool | try_wait () |
Non-blocking version of wait(). More... | |
Counting semaphore.
|
inline |
Destroy and reset the semaphore to an initial value.
This must not be called while there are any waiters.
|
inline |
|
inline |
Wait until count is > 0, then decrement.
Obviously not realtime safe.
|
inline |
Non-blocking version of wait().
Realtime safe?