|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r82145 - trunk/libs/lockfree/test
From: tim_at_[hidden]
Date: 2012-12-21 08:04:10
Author: timblechmann
Date: 2012-12-21 08:04:10 EST (Fri, 21 Dec 2012)
New Revision: 82145
URL: http://svn.boost.org/trac/boost/changeset/82145
Log:
lockfree: test fixes
Text files modified:
trunk/libs/lockfree/test/test_common.hpp | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
Modified: trunk/libs/lockfree/test/test_common.hpp
==============================================================================
--- trunk/libs/lockfree/test/test_common.hpp (original)
+++ trunk/libs/lockfree/test/test_common.hpp 2012-12-21 08:04:10 EST (Fri, 21 Dec 2012)
@@ -10,15 +10,12 @@
#include <boost/array.hpp>
#include <boost/thread.hpp>
-namespace impl
-{
+namespace impl {
using boost::array;
using namespace boost;
using namespace std;
-using boost::lockfree::detail::atomic;
-
template <bool Bounded = false>
struct queue_stress_tester
{
@@ -31,7 +28,7 @@
const int reader_threads;
const int writer_threads;
- atomic_int writers_finished;
+ boost::lockfree::detail::atomic<int> writers_finished;
static_hashed_set<long, buckets> data;
static_hashed_set<long, buckets> dequeued;
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