mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-24 00:00:11 +02:00
The algorithm backing `AtomicWaker` effectively uses a spin lock backed by notifying & yielding the current task. This adds a `spin_lock_hint` annotation to cover this case. While, in practice, the omission of `spin_lock_hint` would not cause problems, there are platforms that do not handle spin locks very well and could enter a deadlock in pathological cases.