#semaphore #blocking

blocking_semaphore

A simple and performant blocking semaphore

1 unstable release

0.1.0 Oct 14, 2024

#817 in Concurrency


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

~0.1–1.6MB
~28K SLoC