Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83277 - trunk/libs/lockfree/test
From: tim_at_[hidden]
Date: 2013-03-03 08:18:32


Author: timblechmann
Date: 2013-03-03 08:18:31 EST (Sun, 03 Mar 2013)
New Revision: 83277
URL: http://svn.boost.org/trac/boost/changeset/83277

Log:
lockfree: testsuite - possible compile fix for IBM compiler
Text files modified:
   trunk/libs/lockfree/test/spsc_queue_stress_test.cpp | 8 ++++----
   trunk/libs/lockfree/test/spsc_queue_test.cpp | 2 --
   2 files changed, 4 insertions(+), 6 deletions(-)

Modified: trunk/libs/lockfree/test/spsc_queue_stress_test.cpp
==============================================================================
--- trunk/libs/lockfree/test/spsc_queue_stress_test.cpp (original)
+++ trunk/libs/lockfree/test/spsc_queue_stress_test.cpp 2013-03-03 08:18:31 EST (Sun, 03 Mar 2013)
@@ -90,8 +90,8 @@
 
         BOOST_REQUIRE(sf.empty());
 
- thread reader(boost::bind(&spsc_queue_tester::get, this));
- thread writer(boost::bind(&spsc_queue_tester::add, this));
+ boost::thread reader(boost::bind(&spsc_queue_tester::get, this));
+ boost::thread writer(boost::bind(&spsc_queue_tester::add, this));
         cout << "reader and writer threads created" << endl;
 
         writer.join();
@@ -186,8 +186,8 @@
     {
         running = true;
 
- thread reader(boost::bind(&spsc_queue_tester_buffering::get, this));
- thread writer(boost::bind(&spsc_queue_tester_buffering::add, this));
+ boost::thread reader(boost::bind(&spsc_queue_tester_buffering::get, this));
+ boost::thread writer(boost::bind(&spsc_queue_tester_buffering::add, this));
         cout << "reader and writer threads created" << endl;
 
         writer.join();

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 2013-03-03 08:18:31 EST (Sun, 03 Mar 2013)
@@ -6,8 +6,6 @@
 
 #include <boost/lockfree/spsc_queue.hpp>
 
-#include <boost/thread.hpp>
-
 #define BOOST_TEST_MAIN
 #ifdef BOOST_LOCKFREE_INCLUDE_TESTS
 #include <boost/test/included/unit_test.hpp>


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