Home
last modified time | relevance | path

Searched refs:rtm_type (Results 1 – 2 of 2) sorted by relevance

/oneTBB/src/tbb/
H A Drtm_rw_mutex.cpp39 case d1::rtm_rw_mutex::rtm_type::rtm_transacting_writer: in release()
40 case d1::rtm_rw_mutex::rtm_type::rtm_transacting_reader: in release()
45 case d1::rtm_rw_mutex::rtm_type::rtm_real_reader: in release()
50 case d1::rtm_rw_mutex::rtm_type::rtm_real_writer: in release()
56 case d1::rtm_rw_mutex::rtm_type::rtm_not_in_mutex: in release()
62 s.m_transaction_state = d1::rtm_rw_mutex::rtm_type::rtm_not_in_mutex; in release()
99 s.m_transaction_state = d1::rtm_rw_mutex::rtm_type::rtm_real_writer; in acquire_writer()
153 case d1::rtm_rw_mutex::rtm_type::rtm_real_reader: { in upgrade()
160 case d1::rtm_rw_mutex::rtm_type::rtm_transacting_reader: { in upgrade()
182 case d1::rtm_rw_mutex::rtm_type::rtm_real_writer: in downgrade()
[all …]
/oneTBB/include/oneapi/tbb/detail/
H A D_rtm_rw_mutex.h47 enum class rtm_type { in alignas() enum
69 … constexpr scoped_lock() : m_mutex(nullptr), m_transaction_state(rtm_type::rtm_not_in_mutex) {} in alignas()
72 …rw_mutex& m, bool write = true) : m_mutex(nullptr), m_transaction_state(rtm_type::rtm_not_in_mutex… in alignas()
78 if(m_transaction_state != rtm_type::rtm_not_in_mutex) { in alignas()
106 rtm_type m_transaction_state; in alignas()
167 __TBB_ASSERT(m_transaction_state != rtm_type::rtm_not_in_mutex, "lock is not acquired"); in release()
175 …if (m_transaction_state == rtm_type::rtm_transacting_writer || m_transaction_state == rtm_type::rt… in upgrade_to_writer()
184 …if (m_transaction_state == rtm_type::rtm_transacting_reader || m_transaction_state == rtm_type::rt… in downgrade_to_reader()
192 …return m_transaction_state == rtm_type::rtm_transacting_writer || m_transaction_state == rtm_type:… in is_writer()