};
template<int DefaultSize = 10>
- struct HeavyValue {
+ struct heavy_value {
int value;
static std::vector<int> 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)
}
};
template<int DefaultSize>
- std::vector<int> HeavyValue< DefaultSize >::pop_buff(DefaultSize, rand());
+ std::vector<int> heavy_value< DefaultSize >::pop_buff(DefaultSize, rand());
template<int DefaultSize>
- std::vector<int>::size_type HeavyValue< DefaultSize >::buffer_size = DefaultSize;
+ std::vector<int>::size_type heavy_value< DefaultSize >::buffer_size = DefaultSize;
}
#endif /* SOURCE_DIRECTORY__TEST_INCLUDE_CDS_TEST_FC_HEVY_VALUE_H_ */
//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 ) \
test( queue ); \
}
- CDSSTRESS_VyukovQueue( old_queue_push_pop )
+ CDSSTRESS_VyukovQueue( simple_queue_push_pop )
#undef CDSSTRESS_Queue_F
TEST_F( FCQueue, std_deque_heavy_value )
{
- typedef fc_test::HeavyValue<> ValueType;
+ typedef fc_test::heavy_value<> ValueType;
typedef cds::container::FCQueue<ValueType> queue_type;
queue_type q;
TEST_F( FCQueue, std_empty_wait_strategy_heavy_value )
{
- typedef fc_test::HeavyValue<> ValueType;
+ typedef fc_test::heavy_value<> ValueType;
typedef cds::container::FCQueue<ValueType, std::queue< ValueType, std::deque<ValueType>>,
cds::container::fcqueue::make_traits<
cds::opt::wait_strategy< cds::algo::flat_combining::wait_strategy::empty >
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<ValueType, std::queue< ValueType, std::deque<ValueType>>,
cds::container::fcqueue::make_traits<
cds::opt::wait_strategy< cds::algo::flat_combining::wait_strategy::single_mutex_single_condvar<> >
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<ValueType, std::queue< ValueType, std::deque<ValueType>>,
cds::container::fcqueue::make_traits<
cds::opt::wait_strategy< cds::algo::flat_combining::wait_strategy::single_mutex_multi_condvar<> >
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<ValueType, std::queue< ValueType, std::deque<ValueType>>,
cds::container::fcqueue::make_traits<
cds::opt::wait_strategy< cds::algo::flat_combining::wait_strategy::multi_mutex_multi_condvar<> >