semaphore 0.4.0

Atomic/lock-free counting semaphore
Documentation

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 and Clone

* lock-free when not using the shutdown API