Home
last modified time | relevance | path

Searched refs:m_transaction_state (Results 1 – 4 of 4) sorted by relevance

/oneTBB/src/tbb/
H A Drtm_rw_mutex.cpp38 switch(s.m_transaction_state) { 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()
146 s.m_transaction_state = d1::rtm_rw_mutex::rtm_type::rtm_real_reader; in acquire_reader()
152 switch(s.m_transaction_state) { in upgrade()
154 s.m_transaction_state = d1::rtm_rw_mutex::rtm_type::rtm_real_writer; in upgrade()
181 switch (s.m_transaction_state) { in downgrade()
183 s.m_transaction_state = d1::rtm_rw_mutex::rtm_type::rtm_real_reader; in downgrade()
189 s.m_transaction_state = d1::rtm_rw_mutex::rtm_type::rtm_transacting_reader; in downgrade()
214 s.m_transaction_state = d1::rtm_rw_mutex::rtm_type::rtm_real_writer; in try_acquire_writer()
[all …]
H A Drtm_mutex.cpp38 switch(s.m_transaction_state) { in release()
54 s.m_transaction_state = d1::rtm_mutex::rtm_state::rtm_none; in release()
59 …__TBB_ASSERT(s.m_transaction_state == d1::rtm_mutex::rtm_state::rtm_none, "scoped_lock already in … in acquire()
75 s.m_transaction_state = d1::rtm_mutex::rtm_state::rtm_transacting; in acquire()
88 s.m_transaction_state = d1::rtm_mutex::rtm_state::rtm_real; in acquire()
94 if (s.m_transaction_state == d1::rtm_mutex::rtm_state::rtm_transacting) { in try_acquire()
97 __TBB_ASSERT(s.m_transaction_state == d1::rtm_mutex::rtm_state::rtm_none, nullptr); in try_acquire()
101 s.m_transaction_state = d1::rtm_mutex::rtm_state::rtm_real; in try_acquire()
/oneTBB/include/oneapi/tbb/detail/
H A D_rtm_rw_mutex.h69 … constexpr scoped_lock() : m_mutex(nullptr), m_transaction_state(rtm_type::rtm_not_in_mutex) {} in alignas()
72 …scoped_lock(rtm_rw_mutex& m, bool write = true) : m_mutex(nullptr), m_transaction_state(rtm_type::… in alignas()
78 if(m_transaction_state != rtm_type::rtm_not_in_mutex) { in alignas()
106 rtm_type m_transaction_state; in alignas() local
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()
H A D_rtm_mutex.h66 constexpr scoped_lock() : m_mutex(nullptr), m_transaction_state(rtm_state::rtm_none) {} in alignas()
69 scoped_lock(rtm_mutex& m) : m_mutex(nullptr), m_transaction_state(rtm_state::rtm_none) { in alignas()
75 if(m_transaction_state != rtm_state::rtm_none) { in alignas()
95 rtm_state m_transaction_state; in alignas() local
134 __TBB_ASSERT(m_transaction_state != rtm_state::rtm_none, "lock is not acquired"); in release()