[uRCU] Removed redundant atomic_thread_fence
[libcds.git] / cds / urcu / details / gpb.h
index 0041f383ce82c26fbdc866271e3fd37e593f142f..5ad75d130d202372af6d13f5847a20a658259fa5 100644 (file)
@@ -234,7 +234,6 @@ namespace cds { namespace urcu {
         bool synchronize( epoch_retired_ptr& ep )
         {
             uint64_t nEpoch;
-            atomics::atomic_thread_fence( atomics::memory_order_acquire );
             {
                 std::unique_lock<lock_type> sl( m_Lock );
                 if ( ep.m_p && m_Buffer.push( ep ))
@@ -244,7 +243,6 @@ namespace cds { namespace urcu {
                 flip_and_wait();
             }
             clear_buffer( nEpoch );
-            atomics::atomic_thread_fence( atomics::memory_order_release );
             return true;
         }
         //@endcond