From baf947b4f078e0fa4a5608f27fb60dc5c649030e Mon Sep 17 00:00:00 2001 From: Marsel Galimullin Date: Mon, 5 Dec 2016 22:59:06 +0300 Subject: [PATCH] simple changes --- test/include/cds_test/fc_hevy_value.h | 10 +++++----- test/stress/queue/push_pop.cpp | 26 +++++++++++++------------- test/unit/queue/fcqueue.cpp | 10 +++++----- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/test/include/cds_test/fc_hevy_value.h b/test/include/cds_test/fc_hevy_value.h index cf427004..ba3fc266 100644 --- a/test/include/cds_test/fc_hevy_value.h +++ b/test/include/cds_test/fc_hevy_value.h @@ -29,7 +29,7 @@ namespace fc_test { }; template - struct HeavyValue { + struct heavy_value { int value; @@ -39,13 +39,13 @@ namespace fc_test { static std::vector pop_buff; static size_t buffer_size; - explicit HeavyValue(int new_value = 0) + explicit heavy_value(int new_value = 0) : value(new_value), nNo(0), nWriterNo(0) { }; - HeavyValue(const HeavyValue &other) + heavy_value(const heavy_value &other) : value(other.value), nNo(other.nNo), nWriterNo(other.nWriterNo) @@ -63,8 +63,8 @@ namespace fc_test { } }; template - std::vector HeavyValue< DefaultSize >::pop_buff(DefaultSize, rand()); + std::vector heavy_value< DefaultSize >::pop_buff(DefaultSize, rand()); template - std::vector::size_type HeavyValue< DefaultSize >::buffer_size = DefaultSize; + std::vector::size_type heavy_value< DefaultSize >::buffer_size = DefaultSize; } #endif /* SOURCE_DIRECTORY__TEST_INCLUDE_CDS_TEST_FC_HEVY_VALUE_H_ */ diff --git a/test/stress/queue/push_pop.cpp b/test/stress/queue/push_pop.cpp index 2e5058ba..cb99297c 100644 --- a/test/stress/queue/push_pop.cpp +++ b/test/stress/queue/push_pop.cpp @@ -342,18 +342,18 @@ namespace { //static void TearDownTestCase(); }; - using value_for_fc_with_heavy_value = queue_push_pop< fc_test::HeavyValue<36000> >; - using old_queue_push_pop = queue_push_pop<>; - - CDSSTRESS_MSQueue( old_queue_push_pop ) - CDSSTRESS_MoirQueue( old_queue_push_pop ) - CDSSTRESS_BasketQueue( old_queue_push_pop ) - CDSSTRESS_OptimsticQueue( old_queue_push_pop ) - CDSSTRESS_FCQueue( old_queue_push_pop ) - CDSSTRESS_FCDeque( old_queue_push_pop ) - CDSSTRESS_FCDeque_HeavyValue( value_for_fc_with_heavy_value ) - CDSSTRESS_RWQueue( old_queue_push_pop ) - CDSSTRESS_StdQueue( old_queue_push_pop ) + using fc_with_heavy_value = queue_push_pop< fc_test::heavy_value<36000> >; + using simple_queue_push_pop = queue_push_pop<>; + + CDSSTRESS_MSQueue( simple_queue_push_pop ) + CDSSTRESS_MoirQueue( simple_queue_push_pop ) + CDSSTRESS_BasketQueue( simple_queue_push_pop ) + CDSSTRESS_OptimsticQueue( simple_queue_push_pop ) + CDSSTRESS_FCQueue( simple_queue_push_pop ) + CDSSTRESS_FCDeque( simple_queue_push_pop ) + CDSSTRESS_FCDeque_HeavyValue( fc_with_heavy_value ) + CDSSTRESS_RWQueue( simple_queue_push_pop ) + CDSSTRESS_StdQueue( simple_queue_push_pop ) #undef CDSSTRESS_Queue_F #define CDSSTRESS_Queue_F( test_fixture, type_name, level ) \ @@ -365,7 +365,7 @@ namespace { test( queue ); \ } - CDSSTRESS_VyukovQueue( old_queue_push_pop ) + CDSSTRESS_VyukovQueue( simple_queue_push_pop ) #undef CDSSTRESS_Queue_F diff --git a/test/unit/queue/fcqueue.cpp b/test/unit/queue/fcqueue.cpp index 142bd269..b33160e9 100644 --- a/test/unit/queue/fcqueue.cpp +++ b/test/unit/queue/fcqueue.cpp @@ -169,7 +169,7 @@ namespace { TEST_F( FCQueue, std_deque_heavy_value ) { - typedef fc_test::HeavyValue<> ValueType; + typedef fc_test::heavy_value<> ValueType; typedef cds::container::FCQueue queue_type; queue_type q; @@ -178,7 +178,7 @@ namespace { TEST_F( FCQueue, std_empty_wait_strategy_heavy_value ) { - typedef fc_test::HeavyValue<> ValueType; + typedef fc_test::heavy_value<> ValueType; typedef cds::container::FCQueue>, cds::container::fcqueue::make_traits< cds::opt::wait_strategy< cds::algo::flat_combining::wait_strategy::empty > @@ -191,7 +191,7 @@ namespace { TEST_F( FCQueue, std_single_mutex_single_condvar_heavy_value ) { - typedef fc_test::HeavyValue<> ValueType; + typedef fc_test::heavy_value<> ValueType; typedef cds::container::FCQueue>, cds::container::fcqueue::make_traits< cds::opt::wait_strategy< cds::algo::flat_combining::wait_strategy::single_mutex_single_condvar<> > @@ -204,7 +204,7 @@ namespace { TEST_F( FCQueue, std_single_mutex_multi_condvar_heavy_value ) { - typedef fc_test::HeavyValue<> ValueType; + typedef fc_test::heavy_value<> ValueType; typedef cds::container::FCQueue>, cds::container::fcqueue::make_traits< cds::opt::wait_strategy< cds::algo::flat_combining::wait_strategy::single_mutex_multi_condvar<> > @@ -217,7 +217,7 @@ namespace { TEST_F( FCQueue, std_multi_mutex_multi_condvar_heavy_value ) { - typedef fc_test::HeavyValue<> ValueType; + typedef fc_test::heavy_value<> ValueType; typedef cds::container::FCQueue>, cds::container::fcqueue::make_traits< cds::opt::wait_strategy< cds::algo::flat_combining::wait_strategy::multi_mutex_multi_condvar<> > -- 2.34.1