tree: 80e67c51af6ad8d8a29c5c41f9e5297ee167e429 [path history] [tgz]
  1. BUILD.gn
  2. OWNERS
  3. README.md
  4. src/
src/lib/cutex/README.md

Cutex

A Rust async mutex that: - is fair under contention - can be conditionally acquired via a ‘lock_when(predicate)’ function

Before locking, a waiters predicate is checked and if the predicate is not true that waiter stays waiting in the same place in the waiter queue.