mason/src2/atomicmutex.h

14 lines
183 B
C
Raw Normal View History

#pragma once
#include <atomic>
class AtomicMutex {
public:
explicit AtomicMutex();
void lock() noexcept;
void unlock() noexcept;
private:
std::atomic_flag flag;
};