SkipList: added a statistical measure
[libcds.git] / cds / intrusive / impl / skip_list.h
index db291380ded5bc49bb888aba59dd936aeb590e3d..c3b38f0e47682eba17dc1825f27784d0dbb925c4 100644 (file)
@@ -1453,8 +1453,9 @@ namespace cds { namespace intrusive {
                     m_Stat.onFastErase();
                     return true;
                 }
                     m_Stat.onFastErase();
                     return true;
                 }
-                else if ( p.bits() ) {
+                else if ( p.bits()) {
                     // Another thread is deleting pDel right now
                     // Another thread is deleting pDel right now
+                    m_Stat.onEraseContention();
                     return false;
                 }
                 m_Stat.onEraseRetry();
                     return false;
                 }
                 m_Stat.onEraseRetry();