34 while(m_lock.test_and_set(std::memory_order_acquire))
42 m_lock.clear(std::memory_order_release);
46 std::atomic_flag m_lock = ATOMIC_FLAG_INIT;
85 #endif // TTKSPINLOCK_H
#define TTK_MODULE_EXPORT
The class of the spin lock.
TTKSpinLockGuard spin_lock_guard
The class of the spin lock guard.
TTKSpinLockGuard(TTKSpinLock &lock)
#define TTK_DISABLE_COPY(Class)