Trait spinning_top::relax::Relax

source ·
pub trait Relax: Default {
    // Required method
    fn relax(&mut self);
}
Expand description

A relax strategy.

Relax types are used to relax the current thread during contention.

Required Methods§

source

fn relax(&mut self)

Relaxes the current thread.

Object Safety§

This trait is not object safe.

Implementors§