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

#34 in #shutdown

Download history 32/week @ 2024-03-13 25/week @ 2024-03-20 31/week @ 2024-03-27 35/week @ 2024-04-03 18/week @ 2024-04-10 23/week @ 2024-04-17 38/week @ 2024-04-24 40/week @ 2024-05-01 36/week @ 2024-05-08 49/week @ 2024-05-15 51/week @ 2024-05-22 77/week @ 2024-05-29 74/week @ 2024-06-05 69/week @ 2024-06-12 73/week @ 2024-06-19 146/week @ 2024-06-26

378 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