Lines Matching refs:my_mutex
160 __TBB_ASSERT( !s.my_mutex, "scoped_lock is already holding a mutex"); in acquire()
164 s.my_mutex = &m; in acquire()
180 ITT_NOTIFY(sync_prepare, s.my_mutex); in acquire()
220 ITT_NOTIFY(sync_prepare, s.my_mutex); in acquire()
237 ITT_NOTIFY(sync_prepare, s.my_mutex); in acquire()
250 ITT_NOTIFY(sync_acquired, s.my_mutex); in acquire()
256 __TBB_ASSERT( !s.my_mutex, "scoped_lock is already holding a mutex"); in try_acquire()
275 s.my_mutex = &m; in try_acquire()
276 ITT_NOTIFY(sync_acquired, s.my_mutex); in try_acquire()
282 __TBB_ASSERT(s.my_mutex!=nullptr, "no lock acquired"); in release()
284 ITT_NOTIFY(sync_releasing, s.my_mutex); in release()
296 if( s.my_mutex->q_tail.compare_exchange_strong(expected, nullptr, in release()
368 …if( !tricky_pointer::load(s.my_next, std::memory_order_acquire) && !s.my_mutex->q_tail.compare_exc… in release()
390 if( !s.my_mutex->q_tail.compare_exchange_strong(expected, nullptr, in release()
417 ITT_NOTIFY(sync_releasing, s.my_mutex); in downgrade_to_reader()
422 if( &s == s.my_mutex->q_tail.load(std::memory_order_seq_cst) ) { in downgrade_to_reader()
467 ITT_NOTIFY(sync_releasing, s.my_mutex); in upgrade_to_writer()
474 …if( !s.my_mutex->q_tail.compare_exchange_strong(expected, tricky_pointer(me)|FLAG, std::memory_ord… in upgrade_to_writer()
521 ITT_NOTIFY(sync_prepare, s.my_mutex); in upgrade_to_writer()
524 s.my_mutex->q_tail.compare_exchange_strong(expected, &s, std::memory_order_release); in upgrade_to_writer()
573 ITT_NOTIFY(sync_acquired, s.my_mutex); in upgrade_to_writer()