Lines Matching refs:d1
108 static bool try_acquire_internal_lock(d1::queuing_rw_mutex::scoped_lock& s) in try_acquire_internal_lock()
115 static void acquire_internal_lock(d1::queuing_rw_mutex::scoped_lock& s) in acquire_internal_lock()
125 static void release_internal_lock(d1::queuing_rw_mutex::scoped_lock& s) in release_internal_lock()
131 static void wait_for_release_of_internal_lock(d1::queuing_rw_mutex::scoped_lock& s) in wait_for_release_of_internal_lock()
137 …static void unblock_or_wait_on_internal_lock(d1::queuing_rw_mutex::scoped_lock& s, uintptr_t flag … in unblock_or_wait_on_internal_lock()
149 static uintptr_t get_flag( d1::queuing_rw_mutex::scoped_lock* ptr ) { in get_flag()
158 static void acquire(d1::queuing_rw_mutex& m, d1::queuing_rw_mutex::scoped_lock& s, bool write) in acquire()
168 …s.my_state.store(d1::queuing_rw_mutex::scoped_lock::state_t(write ? STATE_WRITER : STATE_READER), … in acquire()
254 … static bool try_acquire(d1::queuing_rw_mutex& m, d1::queuing_rw_mutex::scoped_lock& s, bool write) in try_acquire()
266 …s.my_state.store(d1::queuing_rw_mutex::scoped_lock::state_t(write ? STATE_WRITER : STATE_ACTIVEREA… in try_acquire()
272 d1::queuing_rw_mutex::scoped_lock* expected = nullptr; in try_acquire()
281 static void release(d1::queuing_rw_mutex::scoped_lock& s) { in release()
292 …d1::queuing_rw_mutex::scoped_lock* next = tricky_pointer::load(s.my_next, std::memory_order_acquir… in release()
294 d1::queuing_rw_mutex::scoped_lock* expected = &s; in release()
319 …d1::queuing_rw_mutex::scoped_lock* tmp = tricky_pointer::exchange(next->my_prev, nullptr, std::mem… in release()
367 d1::queuing_rw_mutex::scoped_lock* expected = &s; in release()
374 …if(d1::queuing_rw_mutex::scoped_lock *const l_next = tricky_pointer::load(s.my_next, std::memory_o… in release()
386 …d1::queuing_rw_mutex::scoped_lock* next = tricky_pointer::load(s.my_next, std::memory_order_acquir… in release()
388 d1::queuing_rw_mutex::scoped_lock* expected = &s; in release()
414 static bool downgrade_to_reader(d1::queuing_rw_mutex::scoped_lock& s) { in downgrade_to_reader()
418 …d1::queuing_rw_mutex::scoped_lock* next = tricky_pointer::load(s.my_next, std::memory_order_acquir… in downgrade_to_reader()
456 static bool upgrade_to_writer(d1::queuing_rw_mutex::scoped_lock& s) { in upgrade_to_writer()
473 d1::queuing_rw_mutex::scoped_lock* expected = &s; in upgrade_to_writer()
577 static bool is_writer(const d1::queuing_rw_mutex::scoped_lock& m) { in is_writer()
581 static void construct(d1::queuing_rw_mutex& m) { in construct()
587 void __TBB_EXPORTED_FUNC acquire(d1::queuing_rw_mutex& m, d1::queuing_rw_mutex::scoped_lock& s, boo… in acquire()
591 bool __TBB_EXPORTED_FUNC try_acquire(d1::queuing_rw_mutex& m, d1::queuing_rw_mutex::scoped_lock& s,… in try_acquire()
595 void __TBB_EXPORTED_FUNC release(d1::queuing_rw_mutex::scoped_lock& s) { in release()
599 bool __TBB_EXPORTED_FUNC upgrade_to_writer(d1::queuing_rw_mutex::scoped_lock& s) { in upgrade_to_writer()
603 bool __TBB_EXPORTED_FUNC is_writer(const d1::queuing_rw_mutex::scoped_lock& s) { in is_writer()
607 bool __TBB_EXPORTED_FUNC downgrade_to_reader(d1::queuing_rw_mutex::scoped_lock& s) { in downgrade_to_reader()
611 void __TBB_EXPORTED_FUNC construct(d1::queuing_rw_mutex& m) { in construct()