Struct Spinlock

Nested Relationships

Struct Documentation

struct wrench::Spinlock

Public Functions

auto try_lock () noexcept -> bool

Tries to lock the spinlock, returning true if the lock succeded.

auto lock () noexcept -> void

Locks the spinlock. This will block until the lock is acquired.

auto unlock () noexcept -> void

Unlocks the spinlock.