1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
// Copyright (c) 2006-2018 Maxim Khizhinsky
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
#include "test_ordered_set_hp.h"
#include <cds/container/skip_list_set_hp.h>
namespace {
namespace cc = cds::container;
typedef cds::gc::HP gc_type;
class SkipListSet_HP: public cds_test::container_ordered_set_hp
{
protected:
typedef cds_test::container_ordered_set_hp base_class;
void SetUp()
{
typedef cc::SkipListSet< gc_type, int_item > set_type;
// +1 - for guarded_ptr
cds::gc::hp::GarbageCollector::Construct( set_type::c_nHazardPtrCount + 1, 1, 16 );
cds::threading::Manager::attachThread();
}
void TearDown()
{
cds::threading::Manager::detachThread();
cds::gc::hp::GarbageCollector::Destruct( true );
}
};
# define CDSTEST_FIXTURE_NAME SkipListSet_HP
# include "skiplist_hp_inl.h"
}
|