tree: 9120be9e5a228881eeb80019879f6023b6b1c1b3 [path history] [tgz]
  1. src/
  2. BUILD.gn
  3. OWNERS
  4. README.md
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.