Searched refs:m_flag (Results 1 – 3 of 3) sorted by relevance
48 spin_mutex() noexcept : m_flag(false) { in spin_mutex()71 while (m_flag.exchange(true)) backoff.pause(); in lock()78 bool result = !m_flag.exchange(true); in try_lock()88 m_flag.store(false, std::memory_order_release); in unlock()92 std::atomic<bool> m_flag;
34 std::atomic_flag m_flag = ATOMIC_FLAG_INIT; variable38 while (m_flag.test_and_set()) backoff.pause(); in lock()41 return !m_flag.test_and_set(); in try_lock()44 m_flag.clear(std::memory_order_release); in unlock()
64 if(m.m_flag.load(std::memory_order_acquire)) { in acquire()66 spin_wait_while_eq(m.m_flag, true); in acquire()72 if(m.m_flag.load(std::memory_order_relaxed)) { in acquire()