Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82182 - trunk/libs/lockfree/test
From: tim_at_[hidden]
Date: 2012-12-23 05:15:25


Author: timblechmann
Date: 2012-12-23 05:15:23 EST (Sun, 23 Dec 2012)
New Revision: 82182
URL: http://svn.boost.org/trac/boost/changeset/82182

Log:
lockfree: fix testsuite
Text files modified:
   trunk/libs/lockfree/test/spsc_queue_test.cpp | 4 +++-
   1 files changed, 3 insertions(+), 1 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-23 05:15:23 EST (Sun, 23 Dec 2012)
@@ -397,8 +397,10 @@
         for(;;) {
             bool success = get_elements();
             if (!running && !success)
- return;
+ break;
         }
+
+ while ( get_elements() );
     }
 
     void run(void)


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