Trait RelaxStrategy
Other items inspin::relax
pub trait RelaxStrategy { fn relax(); }
A trait implemented by spinning relax strategies.
fn relax()
Perform the relaxing operation during a period of contention.
impl RelaxStrategy for Loop
impl RelaxStrategy for Spin
impl RelaxStrategy for Yield
std