Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69621 - trunk/boost/thread/pthread
From: anthony_at_[hidden]
Date: 2011-03-07 03:39:38


Author: anthonyw
Date: 2011-03-07 03:39:37 EST (Mon, 07 Mar 2011)
New Revision: 69621
URL: http://svn.boost.org/trac/boost/changeset/69621

Log:
Remove inner definition of cond_res from timed_wait so outer variable
is set correctly

Text files modified:
   trunk/boost/thread/pthread/condition_variable.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/thread/pthread/condition_variable.hpp
==============================================================================
--- trunk/boost/thread/pthread/condition_variable.hpp (original)
+++ trunk/boost/thread/pthread/condition_variable.hpp 2011-03-07 03:39:37 EST (Mon, 07 Mar 2011)
@@ -69,7 +69,7 @@
             detail::interruption_checker check_for_interruption(&internal_mutex,&cond);
             guard.activate(m);
             struct timespec const timeout=detail::get_timespec(wait_until);
- int const cond_res=pthread_cond_timedwait(&cond,&internal_mutex,&timeout);
+ cond_res=pthread_cond_timedwait(&cond,&internal_mutex,&timeout);
         }
         this_thread::interruption_point();
         if(cond_res==ETIMEDOUT)


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