Added simplified form of urcu::batch_retire function
[libcds.git] / cds / urcu / general_threaded.h
index 54189aff96e81dc4b4b3c49082621d008a294fb1..e0a22ebe1f6132e6d69752eaa30c86507f0e4083 100644 (file)
@@ -107,6 +107,13 @@ namespace cds { namespace urcu {
             rcu_implementation::instance()->batch_retire( itFirst, itLast );
         }
 
+        /// Retires the pointer chain until \p Func returns \p nullptr retired pointer
+        template <typename Func>
+        static void batch_retire( Func e )
+        {
+            rcu_implementation::instance()->batch_retire( e );
+        }
+
          /// Acquires access lock (so called RCU reader-side lock)
         /**
             For safety reasons, it is better to use \ref scoped_lock class for locking/unlocking