Crate wait_condition
source ·Expand description
Simple condition variables that are convenience wrappers around wait queues.
Structs
- A type wrapper that guarantees a given condition has been met before allowing one task to notify (wake up) other
Task
s waiting on aWaitCondition
. See thecondition_satisfied()
method. - A condition variable that allows multiple
Task
s to wait for a condition to be met, upon which otherTask
s can notify them. This is effectively a convenience wrapper aroundWaitQueue::wait_until()
.
Trait Aliases
- The closure type that can be used within a
WaitCondition
: a parameterless function that returns a bool indicating whether the condition is met.