Struct Spinlock¶
Defined in File spinlock.hpp
Struct Documentation¶
-
struct
ripple::Spinlock¶ A small spinlock implementation.
Public Functions
-
auto
try_lock() noexcept -> bool¶ Tries to lock the spinlock, returning true if the lock succeded.
- Return
true of the lock is successful.
-
auto
lock() noexcept -> void¶ Locks the spinlock.
This will block until the lock is acquired.
-
auto
unlock() noexcept -> void¶ Unlocks the spinlock.
-
auto