From 2adb421951b367335c52d096d98ea8eb4f96214d Mon Sep 17 00:00:00 2001 From: Mike Krinkin Date: Mon, 23 Mar 2015 17:08:44 +0300 Subject: [PATCH] Remove unneeded lock in nogc lazy list find_at_. Call to a comparator doesn't require the lock, so the lock in find_at_ method is odd, so this patch removes that lock. --- cds/intrusive/lazy_list_nogc.h | 1 - 1 file changed, 1 deletion(-) diff --git a/cds/intrusive/lazy_list_nogc.h b/cds/intrusive/lazy_list_nogc.h index ce5ee762..29412d55 100644 --- a/cds/intrusive/lazy_list_nogc.h +++ b/cds/intrusive/lazy_list_nogc.h @@ -610,7 +610,6 @@ namespace cds { namespace intrusive { search( pHead, val, pos, cmp ); if ( pos.pCur != &m_Tail ) { - std::unique_lock< typename node_type::lock_type> al( pos.pCur->m_Lock ); if ( cmp( *node_traits::to_value_ptr( *pos.pCur ), val ) == 0 ) { return iterator( pos.pCur ); -- 2.34.1