Defined in File spinlock.hpp
Spinlock is a synchronization primitive that can be used to protect shared data from being simultaneously accessed by multiple threads.
spinlock() = default¶
Locks the spinlock, blocks if the spinlock is not available.
Tries to lock the spinlock, returns if the spinlock is not available.
Unlocks the spinlock.
Public Static Functions
force_release(bool release = true)¶
Forces lock to no longer care about thread safety start shutting down. Should be called after all threads have been destroyed.