X-Git-Url: http://plrg.eecs.uci.edu/git/?p=libcds.git;a=blobdiff_plain;f=cds%2Fintrusive%2Fsplit_list_rcu.h;h=1faf970e6e51756ecc2a4a224dc5cab6985a77e3;hp=315d5559597bd0196e7f1cdf0265c740ff17767c;hb=1503681e52c392bee2329cf66c910be0f8640105;hpb=a2f5834b1b0611a7bb4ebf4e9f7f5838260cc747 diff --git a/cds/intrusive/split_list_rcu.h b/cds/intrusive/split_list_rcu.h index 315d5559..1faf970e 100644 --- a/cds/intrusive/split_list_rcu.h +++ b/cds/intrusive/split_list_rcu.h @@ -354,7 +354,7 @@ namespace cds { namespace intrusive { assert( pHead != nullptr ); return m_List.find_at( pHead, sv, cmp, - [&f](value_type& item, split_list::details::search_value_type& val){ cds::unref(f)(item, val.val ); }); + [&f](value_type& item, split_list::details::search_value_type& val){ f(item, val.val ); }); } template @@ -496,7 +496,7 @@ namespace cds { namespace intrusive { where \p val is the item inserted. User-defined functor \p f should guarantee that during changing \p val no any other changes could be made on this set's item by concurrent threads. The user-defined functor is called only if the inserting is success and may be passed by reference - using boost::ref + using \p std::ref. The function makes RCU lock internally. */ @@ -536,7 +536,7 @@ namespace cds { namespace intrusive { The functor can change non-key fields of the \p item; however, \p func must guarantee that during changing no any other modifications could be made on this item by concurrent threads. - You can pass \p func argument by value or by reference using boost::ref or cds::ref. + You can pass \p func argument by value or by reference using \p std::ref. The function makes RCU lock internally. @@ -739,7 +739,7 @@ namespace cds { namespace intrusive { \endcode where \p item is the item found, \p val is the find function argument. - You can pass \p f argument by value or by reference using boost::ref or cds::ref. + You can pass \p f argument by value or by reference using \p std::ref. The functor can change non-key fields of \p item. Note that the functor is only guarantee that \p item cannot be disposed during functor is executing. @@ -786,7 +786,7 @@ namespace cds { namespace intrusive { \endcode where \p item is the item found, \p val is the find function argument. - You can pass \p f argument by value or by reference using boost::ref or cds::ref. + You can pass \p f argument by value or by reference using \p std::ref. The functor can change non-key fields of \p item. Note that the functor is only guarantee that \p item cannot be disposed during functor is executing.