From: Mike Krinkin Date: Mon, 23 Mar 2015 14:08:44 +0000 (+0300) Subject: Remove unneeded lock in nogc lazy list find_at_. X-Git-Tag: v2.1.0~298^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2adb421951b367335c52d096d98ea8eb4f96214d;p=libcds.git 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. --- 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 );