Replace mutex in AtomicFlag with std::atomic
Currently, common/threading/AtomicFlag.hpp uses mutable Mutex m_mutex;, which is needlessly heavy for such a simple operation. Better to use std::atomic which is faster and more lightweight.
Currently, common/threading/AtomicFlag.hpp uses mutable Mutex m_mutex;, which is needlessly heavy for such a simple operation. Better to use std::atomic which is faster and more lightweight.