Module relax

Source
Expand description

Strategies that determine the behaviour of locks when encountering contention.

Structs§

Loop
A strategy that rapidly spins, without telling the CPU to do any powering down.
Spin
A strategy that rapidly spins while informing the CPU that it should power down non-essential components via core::hint::spin_loop.
Yieldstd
A strategy that yields the current time slice to the scheduler in favour of other threads or processes.

Traits§

RelaxStrategy
A trait implemented by spinning relax strategies.