From: khizmax Date: Tue, 1 Dec 2015 22:08:10 +0000 (+0300) Subject: Removed consume semantics from some atomic tests X-Git-Tag: v2.1.0~49 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=54a6b56792c47a60fd052473488ac5cc55e22c38;p=libcds.git Removed consume semantics from some atomic tests --- diff --git a/tests/test-hdr/misc/cxx11_atomic_func.cpp b/tests/test-hdr/misc/cxx11_atomic_func.cpp index e16a63d0..15ee5204 100644 --- a/tests/test-hdr/misc/cxx11_atomic_func.cpp +++ b/tests/test-hdr/misc/cxx11_atomic_func.cpp @@ -48,7 +48,7 @@ namespace misc { //CPPUNIT_ASSERT( f.m_Flag == 0 ); do_test_atomic_flag_mo( f, atomics::memory_order_relaxed ); - do_test_atomic_flag_mo( f, atomics::memory_order_consume ); + //do_test_atomic_flag_mo( f, atomics::memory_order_consume ); do_test_atomic_flag_mo( f, atomics::memory_order_acquire ); do_test_atomic_flag_mo( f, atomics::memory_order_release ); do_test_atomic_flag_mo( f, atomics::memory_order_acq_rel ); @@ -269,7 +269,7 @@ namespace misc { do_test_atomic_integral(a); do_test_atomic_integral( a, atomics::memory_order_relaxed ); - do_test_atomic_integral( a, atomics::memory_order_consume ); + //do_test_atomic_integral( a, atomics::memory_order_consume ); do_test_atomic_integral( a, atomics::memory_order_acquire ); do_test_atomic_integral( a, atomics::memory_order_release ); do_test_atomic_integral( a, atomics::memory_order_acq_rel ); @@ -582,7 +582,7 @@ namespace misc { do_test_atomic_bool( a[i] ); do_test_atomic_bool( a[i], atomics::memory_order_relaxed ); - do_test_atomic_bool( a[i], atomics::memory_order_consume ); + //do_test_atomic_bool( a[i], atomics::memory_order_consume ); do_test_atomic_bool( a[i], atomics::memory_order_acquire ); do_test_atomic_bool( a[i], atomics::memory_order_release ); do_test_atomic_bool( a[i], atomics::memory_order_acq_rel ); @@ -640,14 +640,14 @@ namespace misc { void test_atomic_fence() { atomics::atomic_thread_fence(atomics::memory_order_relaxed ); - atomics::atomic_thread_fence(atomics::memory_order_consume ); + //atomics::atomic_thread_fence(atomics::memory_order_consume ); atomics::atomic_thread_fence(atomics::memory_order_acquire ); atomics::atomic_thread_fence(atomics::memory_order_release ); atomics::atomic_thread_fence(atomics::memory_order_acq_rel ); atomics::atomic_thread_fence(atomics::memory_order_seq_cst ); atomics::atomic_signal_fence(atomics::memory_order_relaxed ); - atomics::atomic_signal_fence(atomics::memory_order_consume ); + //atomics::atomic_signal_fence(atomics::memory_order_consume ); atomics::atomic_signal_fence(atomics::memory_order_acquire ); atomics::atomic_signal_fence(atomics::memory_order_release ); atomics::atomic_signal_fence(atomics::memory_order_acq_rel );