Added simplified form of urcu::batch_retire function
[libcds.git] / cds / urcu / signal_buffered.h
index c9ffe3157155ff634703896d6bface98780037d6..b44f563ef61f820609ae78b65e491e64f49b1d43 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