Lines Matching refs:d1

37     static void release(d1::rtm_rw_mutex::scoped_lock& s) {  in release()
39 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()
66 …static void acquire_writer(d1::rtm_rw_mutex& m, d1::rtm_rw_mutex::scoped_lock& s, bool only_specul… in acquire_writer()
67 …__TBB_ASSERT(s.m_transaction_state == d1::rtm_rw_mutex::rtm_type::rtm_not_in_mutex, "scoped_lock a… in acquire_writer()
74 spin_wait_until_eq(m.m_state, d1::rtm_rw_mutex::state_type(0)); in acquire_writer()
84 s.m_transaction_state = d1::rtm_rw_mutex::rtm_type::rtm_transacting_writer; in acquire_writer()
99 s.m_transaction_state = d1::rtm_rw_mutex::rtm_type::rtm_real_writer; in acquire_writer()
106 …static void acquire_reader(d1::rtm_rw_mutex& m, d1::rtm_rw_mutex::scoped_lock& s, bool only_specul… in acquire_reader()
107 …__TBB_ASSERT(s.m_transaction_state == d1::rtm_rw_mutex::rtm_type::rtm_not_in_mutex, "scoped_lock a… in acquire_reader()
124 s.m_transaction_state = d1::rtm_rw_mutex::rtm_type::rtm_transacting_reader; in acquire_reader()
146 s.m_transaction_state = d1::rtm_rw_mutex::rtm_type::rtm_real_reader; in acquire_reader()
151 static bool upgrade(d1::rtm_rw_mutex::scoped_lock& s) { in upgrade()
153 case d1::rtm_rw_mutex::rtm_type::rtm_real_reader: { in upgrade()
154 s.m_transaction_state = d1::rtm_rw_mutex::rtm_type::rtm_real_writer; in upgrade()
160 case d1::rtm_rw_mutex::rtm_type::rtm_transacting_reader: { in upgrade()
161 d1::rtm_rw_mutex& m = *s.m_mutex; in upgrade()
169 s.m_transaction_state = d1::rtm_rw_mutex::rtm_type::rtm_transacting_writer; in upgrade()
180 static bool downgrade(d1::rtm_rw_mutex::scoped_lock& s) { in downgrade()
182 case d1::rtm_rw_mutex::rtm_type::rtm_real_writer: in downgrade()
183 s.m_transaction_state = d1::rtm_rw_mutex::rtm_type::rtm_real_reader; in downgrade()
188 case d1::rtm_rw_mutex::rtm_type::rtm_transacting_writer: in downgrade()
189 s.m_transaction_state = d1::rtm_rw_mutex::rtm_type::rtm_transacting_reader; in downgrade()
202 static bool try_acquire_writer(d1::rtm_rw_mutex& m, d1::rtm_rw_mutex::scoped_lock& s) { in try_acquire_writer()
204 if (s.m_transaction_state == d1::rtm_rw_mutex::rtm_type::rtm_transacting_writer) { in try_acquire_writer()
207 … __TBB_ASSERT(s.m_transaction_state == d1::rtm_rw_mutex::rtm_type::rtm_not_in_mutex, nullptr); in try_acquire_writer()
214 s.m_transaction_state = d1::rtm_rw_mutex::rtm_type::rtm_real_writer; in try_acquire_writer()
221 static bool try_acquire_reader(d1::rtm_rw_mutex& m, d1::rtm_rw_mutex::scoped_lock& s) { in try_acquire_reader()
224 if (s.m_transaction_state == d1::rtm_rw_mutex::rtm_type::rtm_transacting_reader) { in try_acquire_reader()
227 … __TBB_ASSERT(s.m_transaction_state == d1::rtm_rw_mutex::rtm_type::rtm_not_in_mutex, nullptr); in try_acquire_reader()
231 s.m_transaction_state = d1::rtm_rw_mutex::rtm_type::rtm_real_reader; in try_acquire_reader()
238 void __TBB_EXPORTED_FUNC acquire_writer(d1::rtm_rw_mutex& m, d1::rtm_rw_mutex::scoped_lock& s, bool… in acquire_writer()
243 void __TBB_EXPORTED_FUNC acquire_reader(d1::rtm_rw_mutex& m, d1::rtm_rw_mutex::scoped_lock& s, bool… in acquire_reader()
247 bool __TBB_EXPORTED_FUNC upgrade(d1::rtm_rw_mutex::scoped_lock& s) { in upgrade()
251 bool __TBB_EXPORTED_FUNC downgrade(d1::rtm_rw_mutex::scoped_lock& s) { in downgrade()
255 bool __TBB_EXPORTED_FUNC try_acquire_writer(d1::rtm_rw_mutex& m, d1::rtm_rw_mutex::scoped_lock& s) { in try_acquire_writer()
259 bool __TBB_EXPORTED_FUNC try_acquire_reader(d1::rtm_rw_mutex& m, d1::rtm_rw_mutex::scoped_lock& s) { in try_acquire_reader()
263 void __TBB_EXPORTED_FUNC release(d1::rtm_rw_mutex::scoped_lock& s) { in release()