Semaphore
Atomic counting semaphore that can help you control access to a common resource by multiple processes in a concurrent system.
Features
- Effectively lock-free* semantics
- Provides RAII-style acquire/release API
- Implements
Send
,Sync
andClone
* lock-free when not using the shutdown
API