50 iLock.fSpinLock =
nullptr;
76 while(
fFlag.test_and_set(std::memory_order_acquire))
94 fFlag.clear(std::memory_order_release);
Lock & operator=(Lock const &)=delete
Definition: SpinLock.h:32
Lock(SpinLock *iSpinLock)
Definition: SpinLock.h:59
friend class Lock
Definition: SpinLock.h:90
~Lock()
Definition: SpinLock.h:42
SpinLock * fSpinLock
Definition: SpinLock.h:64
SpinLock()
Definition: SpinLock.h:67
void unlock()
Definition: SpinLock.h:92
Lock(Lock &&iLock) noexcept
Definition: SpinLock.h:48
std::atomic_flag fFlag
Definition: SpinLock.h:97
Lock acquire()
Definition: SpinLock.h:74
Definition: SpinLock.h:36
SpinLock & operator=(SpinLock const &)=delete