Module spin::relax

source ·
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.

Traits§