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=6ec1165b0c929f8b4c7d4f7a0ff79a4126b4947e;hpb=28eb2ae5ccef5f6871c1a82df7e969d333a33d02 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