#semaphore #blocking

blocking_semaphore

A simple and performant blocking semaphore

1 unstable release

0.1.0 Oct 14, 2024

#481 in Concurrency

Download history 196/week @ 2024-10-12 26/week @ 2024-10-19 3/week @ 2024-10-26 23/week @ 2024-11-02

248 downloads per month
Used in 3 crates (via test_executors)

MIT/Apache

110KB
90 lines

blocking_semaphore

logo

A simple and performant blocking semaphore.

todo list:

  • binary semaphore
  • counting semaphore
  • portable stdlib implementation with Condvar
  • optimize Windows performance with WaitOnAddress
  • optimize Linux performance with futex
  • optimize macOS performance with dispatch_semaphore

lib.rs:

A simple and performant blocking semaphore.

Dependencies

~120KB