Classes | Namespaces
semaphore.hpp File Reference

Implementation of a reversed semaphore usable for thread synchronization. More...

#include <condition_variable>
#include <mutex>
Include dependency graph for semaphore.hpp:
This graph shows which files directly or indirectly include this file:

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
 

Detailed Description

Implementation of a reversed semaphore usable for thread synchronization.

Author
Martin Pecka SPDX-License-Identifier: BSD-3-Clause SPDX-FileCopyrightText: Czech Technical University in Prague

Definition in file semaphore.hpp.



cras_cpp_common
Author(s): Martin Pecka
autogenerated on Sat Dec 14 2024 03:51:04