Expand description

Spin lock.

To pick the best spin lock for the compilation target, use the type alias BestForCompilationTargetSpinLock.

Structs

An efficient, CAS-free unfair spin lock that uses an atomic fetch OR and only requires one byte of memory.

Traits

A spin-lock API.

Functions

On x86_64, issues a REP NOP which cause the CPU to potentially yield to another HyperThread.

Type Definitions

The best spin lock for the compilation target.