blob: 9d3522c7cbe3822f0a2af24ba4c47206c6a8e42b [file] [log] [blame] [view] [edit]
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.