Lines Matching refs:prev_state
348 …futex_operations::storage_type prev_state = futex_operations::load(m_mutex, boost::memory_order_re… in long_lock() local
349 if (BOOST_LIKELY((prev_state & mutex_bits::locked) == 0u)) in long_lock()
351 futex_operations::storage_type new_state = prev_state | mutex_bits::locked; in long_lock()
352 …if (BOOST_LIKELY(futex_operations::compare_exchange_strong(m_mutex, prev_state, new_state, boost::… in long_lock()
365 …futex_operations::storage_type prev_state = futex_operations::load(m_mutex, boost::memory_order_re… in lock_slow_path() local
368 if (BOOST_LIKELY((prev_state & mutex_bits::locked) == 0u)) in lock_slow_path()
370 futex_operations::storage_type new_state = prev_state | mutex_bits::locked; in lock_slow_path()
371 …if (BOOST_LIKELY(futex_operations::compare_exchange_weak(m_mutex, prev_state, new_state, boost::me… in lock_slow_path()
376 futex_operations::storage_type new_state = prev_state | mutex_bits::contended; in lock_slow_path()
377 …if (BOOST_LIKELY(futex_operations::compare_exchange_weak(m_mutex, prev_state, new_state, boost::me… in lock_slow_path()
380 prev_state = futex_operations::load(m_mutex, boost::memory_order_relaxed); in lock_slow_path()
389 …futex_operations::storage_type prev_state = futex_operations::load(m_mutex, boost::memory_order_re… in unlock() local
393 new_state = (prev_state & (~mutex_bits::locked)) + mutex_bits::counter_one; in unlock()
394 …if (BOOST_LIKELY(futex_operations::compare_exchange_weak(m_mutex, prev_state, new_state, boost::me… in unlock()
398 if ((prev_state & mutex_bits::contended) != 0u) in unlock()
403 prev_state = new_state; in unlock()
405 …futex_operations::compare_exchange_strong(m_mutex, prev_state, new_state, boost::memory_order_rela… in unlock()