layout: doc title: “Starboard Module Reference: spin_lock.h”

Defines a C++-only spin-lock implementation, built entirely on top of Starboard atomics and threads. It can be safely used by both clients and implementations.