Implementation of a reversed semaphore usable for thread synchronization. More...
#include <condition_variable>
#include <mutex>
Go to the source code of this file.
Classes | |
class | cras::ReverseSemaphore |
A reverse counting semaphore which can wait until its count is zero. Each acquire() increases this count and each release() decreases it. waitZero() is the function that waits until the internal count is zero. The semaphore can be disabled, which means no new acquire() calls will be accepted. This is useful if you plan to quit. More... | |
class | cras::SemaphoreGuard< T > |
RAII guard for operations with a semaphore. On creation, the semaphore is acquired, and on destruction, it is released. More... | |
Namespaces | |
cras | |
Implementation of a reversed semaphore usable for thread synchronization.
Definition in file semaphore.hpp.