Module spin::relax [−][src]
Expand description
Strategies that determine the behaviour of locks when encountering contention.
Structs
A strategy that rapidly spins, without telling the CPU to do any powering down.
A strategy that rapidly spins while informing the CPU that it should power down non-essential components via
core::hint::spin_loop
.
Yield
std
A strategy that yields the current time slice to the scheduler in favour of other threads or processes.
Traits
A trait implemented by spinning relax strategies.