Module mycelium_util::sync::hint
source · Expand description
A wrapper for the core::hint
module that emits either loom
spin loop
hints (when cfg(loom)
is enabled), or real spin loop hints when loom is
not enabled.
Functions
- spin_loopNon-
loom
Emits a machine instruction to signal the processor that it is running in a busy-wait spin-loop (“spin lock”).