diff --git a/lib/base/atomic.hpp b/lib/base/atomic.hpp index fe03ea5501e..3abc816ed8a 100644 --- a/lib/base/atomic.hpp +++ b/lib/base/atomic.hpp @@ -84,20 +84,20 @@ class Locked public: inline T load() const { - std::unique_lock lock(m_Mutex); + std::unique_lock lock (m_Mutex); return m_Value; } inline void store(T desired) { - std::unique_lock lock(m_Mutex); + std::unique_lock lock (m_Mutex); m_Value = std::move(desired); } private: - mutable std::mutex m_Mutex; + mutable SpinMutex m_Mutex; T m_Value; };