X-Git-Url: http://plrg.eecs.uci.edu/git/?p=libcds.git;a=blobdiff_plain;f=test%2Fstress%2Fsequential%2Ftest.cpp;h=a632e17a21eb0223ca53a4662e6c47e8fbfdf0ec;hp=f999c9ed85c2198715dd389810d9817e335f58f7;hb=HEAD;hpb=3a73939df7e83e82097d9e024c58bff6c03c324c;ds=sidebyside diff --git a/test/stress/sequential/test.cpp b/test/stress/sequential/test.cpp index f999c9ed..a632e17a 100644 --- a/test/stress/sequential/test.cpp +++ b/test/stress/sequential/test.cpp @@ -33,7 +33,9 @@ */ #include "../misc/common.h" +#include "../stack/stack_type.h" #include +#include namespace { @@ -41,12 +43,28 @@ class sequential_test : public cds_test::stress_fixture { }; +atomics::atomic x; +atomics::atomic y; +typedef cds::sync::spin SpinLock; +SpinLock l; + +struct value_type { + size_t num; +}; + +typedef stack::Types::Treiber_HP stack_type; +stack_type stack; +rigtorp::SPSCQueue q(10); + TEST_F(sequential_test, TEST) { - typedef cds::sync::spin SpinLock; - SpinLock l; - l.lock(); - std::cout << "TEST\n"; - l.unlock(); +// l.lock(); +// l.unlock(); +// y.store(1, atomics::memory_order_relaxed); +// value_type v = {1}; +// stack.push(v); +// stack.pop(v); + + q.push(1); } } // namespace