1 #include <cds/gc/dhp.h>
4 #include <cds/intrusive/fcstack.h>
11 namespace ci = cds::intrusive;
12 typedef cds::gc::HP hp_gc;
14 struct Foo : boost::intrusive::list_base_hook<> {
19 typedef ci::FCStack<Foo> MyStack;
25 // Initialize Hazard Pointer singleton
26 cds::gc::HP hpGC(128, 8, 128);
27 // If main thread uses lock-free containers
28 // the main thread should be attached to libcds infrastructure
29 cds::threading::Manager::attachThread();
37 cout << "Dequeued " << res->x << "\n";
39 cout << "Dequeued none\n\n";