Atomic counting semaphore that can help you control access to a common resource by multiple processes in a concurrent system.
- Effectively lock-free* semantics
- Provides RAII-style acquire/release API
* lock-free when not using the
Counting semaphore to control concurrent access to a common resource.
RAII guard used to release access to the semaphore automatically when it falls out of scope.
Handle representing the shutdown process of a semaphore, allowing for extraction of the underlying resource.
Error indicating a failure to acquire access to the resource behind the semaphore.
Result returned from