Crate cutex

source ·
Expand description

Cutex - a Conditionally-acquired mUTEX

Structs

Cutex - a Conditionally-acquired mUTEX
A locked Cutex. When dropped, drops the lock and allows the next waiter in.
A future that waits for a Cutex to be locked with the given predicate. Once this future completes and returns a CutexGuard, it’s behavior if polled is explicitly unstable and may change in the future.
Helper to poll a cutex.

Traits

Determines if a Cutex can be locked by a waiter.