projects
/
libcds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d51ebf
)
Remove unneeded lock in nogc lazy list find_at_.
author
Mike Krinkin
<krinkin.m.u@gmail.com>
Mon, 23 Mar 2015 14:08:44 +0000
(17:08 +0300)
committer
Mike Krinkin
<krinkin.m.u@gmail.com>
Mon, 23 Mar 2015 16:28:44 +0000
(19:28 +0300)
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
patch
|
blob
|
history
diff --git
a/cds/intrusive/lazy_list_nogc.h
b/cds/intrusive/lazy_list_nogc.h
index ce5ee7625ab9e424b3b4b322427575bffa4ab925..29412d552c96de03d153a6dd3d518113240f11d6 100644
(file)
--- 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 );