6 releases (3 breaking)

Uses old Rust 2015

0.4.0 Oct 8, 2017
0.3.0 Oct 6, 2017
0.2.1 Oct 4, 2017
0.1.1 Oct 3, 2017

#29 in #shutdown

Download history 14/week @ 2023-11-18 68/week @ 2023-11-25 83/week @ 2023-12-02 34/week @ 2023-12-09 48/week @ 2023-12-16 3/week @ 2023-12-23 22/week @ 2023-12-30 52/week @ 2024-01-06 23/week @ 2024-01-13 10/week @ 2024-01-20 29/week @ 2024-01-27 4/week @ 2024-02-03 32/week @ 2024-02-10 43/week @ 2024-02-17 47/week @ 2024-02-24 10/week @ 2024-03-02

132 downloads per month
Used in cg-local-app

BSD-2-Clause

11KB
224 lines

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


lib.rs:

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

Dependencies

~1MB
~17K SLoC