#semaphore #concurrency #atomic

semaphore

Atomic/lock-free counting semaphore

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

#12 in #semaphore

Download history 22/week @ 2021-08-10 61/week @ 2021-08-17 64/week @ 2021-08-24 7/week @ 2021-08-31 83/week @ 2021-09-07 46/week @ 2021-09-14 72/week @ 2021-09-21 42/week @ 2021-09-28 114/week @ 2021-10-05 164/week @ 2021-10-12 88/week @ 2021-10-19 157/week @ 2021-10-26 133/week @ 2021-11-02 135/week @ 2021-11-09 231/week @ 2021-11-16 144/week @ 2021-11-23

674 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
~15K SLoC

JY