Death::Threading::Spinlock class

Lightweight spinlock implementation.

Constructors, destructors, conversion operators

Spinlock() defaulted
Spinlock(Spinlock const&) deleted

Public functions

auto operator=(Spinlock const&) -> Spinlock& deleted
void lock() noexcept
Acquires the lock, busy-waiting until it becomes available.
void unlock() noexcept
Releases the lock.