Added simplified form of urcu::batch_retire function
[libcds.git] / cds / urcu / signal_threaded.h
index 24d0795c28ea1c48a5c0927a3fd5a6e1a364b0a8..51e767c7bb03a0ae1ec77991fc165fc02e475737 100644 (file)
@@ -114,6 +114,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