embassy-sync

Crates

git

Versions

default

Flavors

Module waitqueue

Source
Expand description

Async low-level wait queues

Structs§

AtomicWaker
Utility struct to register and wake a waker.
GenericAtomicWaker
Utility struct to register and wake a waker. If a waker is registered, registering another waker will replace the previous one without waking it. Intended to wake a task from an interrupt. Therefore, it is generally not expected, that multiple tasks register try to register a waker simultaneously.
MultiWakerRegistration
Utility struct to register and wake multiple wakers. Queue of wakers with a maximum length of N. Intended for waking multiple tasks.
WakerRegistration
Utility struct to register and wake a waker. If a waker is registered, registering another waker will replace the previous one. The previous waker will be woken in this case, giving it a chance to reregister itself. Although it is possible to wake multiple tasks this way, this will cause them to wake each other in a loop registering themselves.