Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78254 - trunk/boost/thread/pthread
From: vicente.botet_at_[hidden]
Date: 2012-04-29 10:27:44


Author: viboes
Date: 2012-04-29 10:27:43 EDT (Sun, 29 Apr 2012)
New Revision: 78254
URL: http://svn.boost.org/trac/boost/changeset/78254

Log:
Thread: removed warning
Text files modified:
   trunk/boost/thread/pthread/shared_mutex.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/boost/thread/pthread/shared_mutex.hpp
==============================================================================
--- trunk/boost/thread/pthread/shared_mutex.hpp (original)
+++ trunk/boost/thread/pthread/shared_mutex.hpp 2012-04-29 10:27:43 EDT (Sun, 29 Apr 2012)
@@ -402,7 +402,7 @@
           boost::mutex::scoped_lock lk(state_change);
           if (state.shared_count != 1)
           {
- while (true)
+ for (;;)
               {
                 cv_status status = shared_cond.wait_until(lk,abs_time);
                 if (state.shared_count == 1)
@@ -462,7 +462,7 @@
           boost::mutex::scoped_lock lk(state_change);
           if (state.shared_count != 1)
           {
- while (true)
+ for (;;)
               {
                 cv_status status = shared_cond.wait_until(lk,abs_time);
                 if (state.shared_count == 1)
@@ -524,7 +524,7 @@
               || state.upgrade
               )
           {
- while (true)
+ for (;;)
               {
                 cv_status status = exclusive_cond.wait_until(lk,abs_time);
                 if( ! state.exclusive


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