uRCU: docfix, mark some virtual func as "override"
authorkhizmax <libcds.dev@gmail.com>
Sun, 19 Mar 2017 07:50:17 +0000 (10:50 +0300)
committerkhizmax <libcds.dev@gmail.com>
Sun, 19 Mar 2017 07:50:17 +0000 (10:50 +0300)
cds/urcu/details/gpb.h
cds/urcu/details/gpi.h
cds/urcu/details/gpt.h
cds/urcu/details/sig_buffered.h

index 697925dac8cb9dc8a28211e7ef82e0c6e2c1861d..0041f383ce82c26fbdc866271e3fd37e593f142f 100644 (file)
@@ -86,7 +86,9 @@ namespace cds { namespace urcu {
         typedef base_class::thread_gc thread_gc ;   ///< Thread-side RCU part
         typedef typename thread_gc::scoped_lock scoped_lock ; ///< Access lock class
 
-        static bool const c_bBuffered = true ; ///< This RCU buffers disposed elements
+        //@cond
+        static bool const c_bBuffered = true ; ///< Bufferized RCU
+        //@endcond
 
     protected:
         //@cond
@@ -146,7 +148,7 @@ namespace cds { namespace urcu {
             }
         }
 
-        // Return: true - synchronize has been called, false - otherwise
+        // Return: \p true - synchronize has been called, \p false - otherwise
         bool push_buffer( epoch_retired_ptr&& ep )
         {
             bool bPushed = m_Buffer.push( ep );
@@ -191,7 +193,7 @@ namespace cds { namespace urcu {
             When the buffer becomes full \ref synchronize function is called
             to wait for the end of grace period and then to free all pointers from the buffer.
         */
-        virtual void retire_ptr( retired_ptr& p )
+        virtual void retire_ptr( retired_ptr& p ) override
         {
             if ( p.m_p )
                 push_buffer( epoch_retired_ptr( p, m_nCurEpoch.load( atomics::memory_order_relaxed )));
index a3a7da3c79fb146734fffc28c69c634813cd94ea..560a002bf78e4165a3bd5fcef9bf50d73ac60b6e 100644 (file)
@@ -72,7 +72,9 @@ namespace cds { namespace urcu {
         typedef typename base_class::thread_gc  thread_gc ;   ///< Thread-side RCU part
         typedef typename thread_gc::scoped_lock scoped_lock ; ///< Access lock class
 
-        static bool const c_bBuffered = false ; ///< This RCU does not buffer disposed elements
+        //@cond
+        static bool const c_bBuffered = false ; ///< No buffers
+        //@endcond
 
     protected:
         //@cond
@@ -137,7 +139,7 @@ namespace cds { namespace urcu {
             The method calls \p synchronize() to wait for the end of grace period
             and calls \p p disposer.
         */
-        virtual void retire_ptr( retired_ptr& p )
+        virtual void retire_ptr( retired_ptr& p ) override
         {
             synchronize();
             if ( p.m_p )
index 111e03b870ee74a6fc1d0ea11832bd87ed93c2ea..4524244330a9680b32ed63ae6d1255eaa61d7b51 100644 (file)
@@ -99,7 +99,9 @@ namespace cds { namespace urcu {
         typedef base_class::thread_gc   thread_gc ;     ///< Access lock class
         typedef typename thread_gc::scoped_lock scoped_lock ; ///< Access lock class
 
-        static bool const c_bBuffered = true ; ///< This RCU buffers disposed elements
+        //@cond
+        static bool const c_bBuffered = true ; ///< Bufferized RCU
+        //@endcond
 
     protected:
         //@cond
@@ -206,7 +208,7 @@ namespace cds { namespace urcu {
             to wait for the end of grace period and then
             a message is sent to the reclamation thread.
         */
-        virtual void retire_ptr( retired_ptr& p )
+        virtual void retire_ptr( retired_ptr& p ) override
         {
             if ( p.m_p )
                 push_buffer( epoch_retired_ptr( p, m_nCurEpoch.load( atomics::memory_order_acquire )));
index 9b940183ae8d6a0762c303265094c373ddd74f4d..378c1b60662bc20609909ace7d341084bf900706 100644 (file)
@@ -88,7 +88,9 @@ namespace cds { namespace urcu {
         typedef base_class::thread_gc thread_gc ;   ///< Thread-side RCU part
         typedef typename thread_gc::scoped_lock scoped_lock ; ///< Access lock class
 
-        static bool const c_bBuffered = true ; ///< This RCU buffers disposed elements
+        //@cond
+        static bool const c_bBuffered = true ; ///< Bufferized RCU
+        //@endcond
 
     protected:
         //@cond
@@ -189,7 +191,7 @@ namespace cds { namespace urcu {
             When the buffer becomes full \ref synchronize function is called
             to wait for the end of grace period and then to free all pointers from the buffer.
         */
-        virtual void retire_ptr( retired_ptr& p )
+        virtual void retire_ptr( retired_ptr& p ) override
         {
             if ( p.m_p )
                 push_buffer( epoch_retired_ptr( p, m_nCurEpoch.load( atomics::memory_order_relaxed )));