pos.pFound = pos.guard.protect( pos.pCur->data, []( marked_data_ptr p ) { return p.ptr(); }).ptr();
if ( !pos.pFound )
break;
- if ( cds_likely( unlink_node( pos ))) {
+ if ( cds_likely( unlink_data( pos ))) {
--m_ItemCounter;
break;
}
return false;
}
- if ( link_node( &val, pos ) ) {
+ if ( link_data( &val, pos ) ) {
++m_ItemCounter;
m_Stat.onInsertSuccess();
return true;
return false;
}
- if ( link_node( &val, pos ) ) {
+ if ( link_data( &val, pos ) ) {
f( val );
++m_ItemCounter;
m_Stat.onInsertSuccess();
return std::make_pair( false, false );
}
- if ( link_node( &val, pos )) {
+ if ( link_data( &val, pos )) {
func( val, static_cast<value_type*>( nullptr ));
++m_ItemCounter;
m_Stat.onUpdateNew();
back_off bkoff;
while ( search( refHead, val, pos, key_comparator())) {
if ( pos.pFound == &val ) {
- if ( unlink_node( pos )) {
+ if ( unlink_data( pos )) {
--m_ItemCounter;
m_Stat.onEraseSuccess();
return true;
{
back_off bkoff;
while ( search( refHead, val, pos, cmp )) {
- if ( unlink_node( pos )) {
+ if ( unlink_data( pos )) {
f( *pos.pFound );
--m_ItemCounter;
m_Stat.onEraseSuccess();
position pos;
back_off bkoff;
while ( search( refHead, val, pos, cmp )) {
- if ( unlink_node( pos )) {
+ if ( unlink_data( pos )) {
--m_ItemCounter;
m_Stat.onEraseSuccess();
assert( pos.pFound != nullptr );
}
}
- bool link_node( value_type * pVal, position& pos )
+ bool link_data( value_type * pVal, position& pos )
{
if ( pos.pPrev ) {
if ( pos.pPrev->data.load( memory_model::memory_order_relaxed ) == marked_data_ptr() ) {
return false;
}
- static bool unlink_node( position& pos )
+ static bool unlink_data( position& pos )
{
assert( pos.pCur != nullptr );
assert( pos.pFound != nullptr );