Function swiss_army_knife::hardware_optimized_spin_lock::busy_wait_spin_loop_hint[][src]

pub fn busy_wait_spin_loop_hint()
Expand description

On x86_64, issues a REP NOP which cause the CPU to potentially yield to another HyperThread.

Internally inlines calls to Rust’s std::hint::spin_loop() but deals with the fact that this is unstable, but its former usage via std::sync::atomic_spin_loop_hint() is deprecated!