class SpinLock
{
	std::atomic_flag flag; // = ATOMIC_FLAG_INIT; (c++ 20이전 초기화 방법)
public:
	void Lock() { while(flag.test_and_set()); }
	void Unlock() { flag.clear(); }
}