34 return !
atomic_flag_.test_and_set(std::memory_order_acquire);
46 while (
atomic_flag_.test_and_set(std::memory_order_acquire))
轻量级自旋锁实现 / Lightweight spinlock implementation
void Lock() noexcept
阻塞直到获取锁 / Blocks until the lock is acquired
bool TryLock() noexcept
尝试获取锁 / Attempts to acquire the lock
void Unlock() noexcept
释放锁 / Releases the lock
std::atomic_flag atomic_flag_
自旋锁标志 / Spinlock flag
LibXR Color Control Library / LibXR终端颜色控制库
constexpr auto min(T1 a, T2 b) -> typename std::common_type< T1, T2 >::type
计算两个数的最小值