5 #include <cds/container/mspriority_queue.h> 6 #include <cds/container/treiber_stack.h> 12 using gc_type = cds::gc::HP;
15 using Stack = cds::container::TreiberStack<gc_type, T>;
17 template <
typename T,
typename Comparator>
18 using PriorityQueue = cds::container::MSPriorityQueue<
19 T,
typename cds::container::mspriority_queue::make_traits<
20 cds::opt::buffer<cds::opt::v::initialized_dynamic_buffer<char>>,
21 cds::opt::compare<Comparator>>::type>;
27 cds::threading::Manager::attachThread();
37 cds::threading::Manager::detachThread();
47 explicit CdsInit(
bool use_lock_free_container) {
50 hpGC_ = std::make_unique<gc_type>();
51 if (use_lock_free_container) {
52 cds::threading::Manager::attachThread();
67 std::unique_ptr<gc_type> hpGC_;
Sum type of symbolic::Expression and symbolic::Formula.
Definition: api.cc:9