|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r81391 - trunk/libs/lockfree/test
From: tim_at_[hidden]
Date: 2012-11-17 06:36:36
Author: timblechmann
Date: 2012-11-17 06:36:36 EST (Sat, 17 Nov 2012)
New Revision: 81391
URL: http://svn.boost.org/trac/boost/changeset/81391
Log:
lockfree: possible workarounds for testsuite failures
Signed-off-by: Tim Blechmann <tim_at_[hidden]>
Text files modified:
trunk/libs/lockfree/test/spsc_queue_test.cpp | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
Modified: trunk/libs/lockfree/test/spsc_queue_test.cpp
==============================================================================
--- trunk/libs/lockfree/test/spsc_queue_test.cpp (original)
+++ trunk/libs/lockfree/test/spsc_queue_test.cpp 2012-11-17 06:36:36 EST (Sat, 17 Nov 2012)
@@ -255,7 +255,7 @@
{
spsc_queue<int, capacity<128> > sf;
- atomic<long> spsc_queue_cnt, received_nodes;
+ boost::lockfree::detail::atomic<long> spsc_queue_cnt, received_nodes;
static_hashed_set<int, 1<<16 > working_set;
@@ -329,18 +329,18 @@
BOOST_AUTO_TEST_CASE( spsc_queue_test_caching )
{
- spsc_queue_tester test1;
- test1.run();
+ boost::shared_ptr<spsc_queue_tester> test1(new spsc_queue_tester);
+ test1->run();
}
struct spsc_queue_tester_buffering
{
spsc_queue<int, capacity<128> > sf;
- atomic<long> spsc_queue_cnt;
+ boost::lockfree::detail::atomic<long> spsc_queue_cnt;
static_hashed_set<int, 1<<16 > working_set;
- atomic<long> received_nodes;
+ boost::lockfree::detail::atomic<long> received_nodes;
spsc_queue_tester_buffering(void):
spsc_queue_cnt(0), received_nodes(0)
@@ -421,9 +421,9 @@
}
};
-spsc_queue_tester_buffering test1;
BOOST_AUTO_TEST_CASE( spsc_queue_test_buffering )
{
- test1.run();
+ boost::shared_ptr<spsc_queue_tester_buffering> test1(new spsc_queue_tester_buffering);
+ test1->run();
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk