18 #ifndef ION_BASE_SPINMUTEX_H_
19 #define ION_BASE_SPINMUTEX_H_
59 std::atomic<bool> locked_;
65 #endif // ION_BASE_SPINMUTEX_H_
bool IsLocked() const
Returns whether the Mutex is currently locked. Does not block.
SpinMutex exposes the same interface as ion::port::Mutex, but implements locking via a simple atomic ...