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

#35 in #shutdown

Download history 59/week @ 2024-09-16 66/week @ 2024-09-23 61/week @ 2024-09-30 46/week @ 2024-10-07 48/week @ 2024-10-14 1/week @ 2024-10-21 7/week @ 2024-10-28 65/week @ 2024-11-04 48/week @ 2024-11-11 54/week @ 2024-11-18 72/week @ 2024-11-25 89/week @ 2024-12-02 94/week @ 2024-12-09 82/week @ 2024-12-16 55/week @ 2024-12-23 38/week @ 2024-12-30

280 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