ORIGINAL
|
Semaphore synchronization primitives and guards. More...
Go to the source code of this file.
Classes | |
class | original::semaphore< MAX_CNT > |
Counting semaphore with maximum count constraint. More... | |
class | original::semaphore< 0 > |
class | original::semaphoreGuard< MAX_CNT > |
RAII wrapper for automatic semaphore management. More... | |
Namespaces | |
namespace | original |
Main namespace for the project Original. | |
Semaphore synchronization primitives and guards.
This header defines the semaphore
class template and semaphoreGuard
RAII wrapper for managing concurrent access to shared resources with counting semaphores.
The file provides:
semaphore<MAX_CNT>
: A counting semaphore with maximum count constraintsemaphore<0>
: Specialization for unbounded semaphore (no maximum limit)semaphoreGuard<MAX_CNT>
: RAII wrapper for automatic semaphore acquisition/releaseFeatures: