Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81742 - trunk/libs/lockfree/test
From: tim_at_[hidden]
Date: 2012-12-06 10:41:41


Author: timblechmann
Date: 2012-12-06 10:41:40 EST (Thu, 06 Dec 2012)
New Revision: 81742
URL: http://svn.boost.org/trac/boost/changeset/81742

Log:
lockfree: testsuite cleanup
Text files modified:
   trunk/libs/lockfree/test/spsc_queue_test.cpp | 6 ++----
   trunk/libs/lockfree/test/test_common.hpp | 2 +-
   2 files changed, 3 insertions(+), 5 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-12-06 10:41:40 EST (Thu, 06 Dec 2012)
@@ -266,7 +266,6 @@
     void add(void)
     {
         for (boost::uint32_t i = 0; i != nodes_per_thread; ++i) {
-
             int id = generate_id<int>();
             working_set.insert(id);
 
@@ -280,7 +279,6 @@
     bool get_element(void)
     {
         int data;
-
         bool success = sf.pop(data);
 
         if (success) {
@@ -293,7 +291,7 @@
             return false;
     }
 
- atomic<bool> running;
+ boost::lockfree::detail::atomic<bool> running;
 
     void get(void)
     {
@@ -389,7 +387,7 @@
             return false;
     }
 
- atomic<bool> running;
+ boost::lockfree::detail::atomic<bool> running;
 
     void get(void)
     {

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-06 10:41:40 EST (Thu, 06 Dec 2012)
@@ -60,7 +60,7 @@
         }
     }
 
- atomic<bool> running;
+ boost::lockfree::detail::atomic<bool> running;
 
     template <typename queue>
     void get_items(queue & stk)


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