Module spin::mutex::spin

source · []
Expand description

A naïve spinning mutex.

Waiting threads hammer an atomic variable until it becomes available. Best-case latency is low, but worst-case latency is theoretically infinite.

Structs

A spin lock providing mutually exclusive access to data.

A guard that provides mutable data access.