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.
  • A strategy that yields the current time slice to the scheduler in favour of other threads or processes.

Traits