1.24.0[−][src]Function boolean_enums::lstd::sync::atomic::spin_loop_hint
pub fn spin_loop_hint()
Save power or switch hyperthreads in a busy-wait spin-loop.
This function is deliberately more primitive than
std::thread::yield_now
and
does not directly yield to the system's scheduler.
In some cases it might be useful to use a combination of both functions.
Careful benchmarking is advised.
On some platforms this function may not do anything at all.