Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85463 - trunk/boost/thread/pthread
From: vicente.botet_at_[hidden]
Date: 2013-08-25 11:09:12


Author: viboes
Date: 2013-08-25 11:09:12 EDT (Sun, 25 Aug 2013)
New Revision: 85463
URL: http://svn.boost.org/trac/boost/changeset/85463

Log:
Thread: rename wait_until parameter to avoid shadow with member function.

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

Modified: trunk/boost/thread/pthread/condition_variable.hpp
==============================================================================
--- trunk/boost/thread/pthread/condition_variable.hpp Sun Aug 25 11:08:08 2013 (r85462)
+++ trunk/boost/thread/pthread/condition_variable.hpp 2013-08-25 11:09:12 EDT (Sun, 25 Aug 2013) (r85463)
@@ -200,15 +200,15 @@
 
 #if defined BOOST_THREAD_USES_DATETIME
         template<typename lock_type>
- bool timed_wait(lock_type& m,boost::system_time const& wait_until)
+ bool timed_wait(lock_type& m,boost::system_time const& abs_time)
         {
- struct timespec const timeout=detail::to_timespec(wait_until);
+ struct timespec const timeout=detail::to_timespec(abs_time);
             return do_wait_until(m, timeout);
         }
         template<typename lock_type>
- bool timed_wait(lock_type& m,xtime const& wait_until)
+ bool timed_wait(lock_type& m,xtime const& abs_time)
         {
- return timed_wait(m,system_time(wait_until));
+ return timed_wait(m,system_time(abs_time));
         }
 
         template<typename lock_type,typename duration_type>
@@ -218,20 +218,20 @@
         }
 
         template<typename lock_type,typename predicate_type>
- bool timed_wait(lock_type& m,boost::system_time const& wait_until,predicate_type pred)
+ bool timed_wait(lock_type& m,boost::system_time const& abs_time, predicate_type pred)
         {
             while (!pred())
             {
- if(!timed_wait(m, wait_until))
+ if(!timed_wait(m, abs_time))
                     return pred();
             }
             return true;
         }
 
         template<typename lock_type,typename predicate_type>
- bool timed_wait(lock_type& m,xtime const& wait_until,predicate_type pred)
+ bool timed_wait(lock_type& m,xtime const& abs_time, predicate_type pred)
         {
- return timed_wait(m,system_time(wait_until),pred);
+ return timed_wait(m,system_time(abs_time),pred);
         }
 
         template<typename lock_type,typename duration_type,typename predicate_type>

Modified: trunk/boost/thread/pthread/condition_variable_fwd.hpp
==============================================================================
--- trunk/boost/thread/pthread/condition_variable_fwd.hpp Sun Aug 25 11:08:08 2013 (r85462)
+++ trunk/boost/thread/pthread/condition_variable_fwd.hpp 2013-08-25 11:09:12 EDT (Sun, 25 Aug 2013) (r85463)
@@ -98,21 +98,21 @@
 #if defined BOOST_THREAD_USES_DATETIME
         inline bool timed_wait(
             unique_lock<mutex>& m,
- boost::system_time const& wait_until)
+ boost::system_time const& abs_time)
         {
 #if defined BOOST_THREAD_WAIT_BUG
- struct timespec const timeout=detail::to_timespec(wait_until + BOOST_THREAD_WAIT_BUG);
+ struct timespec const timeout=detail::to_timespec(abs_time + BOOST_THREAD_WAIT_BUG);
             return do_wait_until(m, timeout);
 #else
- struct timespec const timeout=detail::to_timespec(wait_until);
+ struct timespec const timeout=detail::to_timespec(abs_time);
             return do_wait_until(m, timeout);
 #endif
         }
         bool timed_wait(
             unique_lock<mutex>& m,
- xtime const& wait_until)
+ xtime const& abs_time)
         {
- return timed_wait(m,system_time(wait_until));
+ return timed_wait(m,system_time(abs_time));
         }
 
         template<typename duration_type>
@@ -126,11 +126,11 @@
         template<typename predicate_type>
         bool timed_wait(
             unique_lock<mutex>& m,
- boost::system_time const& wait_until,predicate_type pred)
+ boost::system_time const& abs_time,predicate_type pred)
         {
             while (!pred())
             {
- if(!timed_wait(m, wait_until))
+ if(!timed_wait(m, abs_time))
                     return pred();
             }
             return true;
@@ -139,9 +139,9 @@
         template<typename predicate_type>
         bool timed_wait(
             unique_lock<mutex>& m,
- xtime const& wait_until,predicate_type pred)
+ xtime const& abs_time,predicate_type pred)
         {
- return timed_wait(m,system_time(wait_until),pred);
+ return timed_wait(m,system_time(abs_time),pred);
         }
 
         template<typename duration_type,typename predicate_type>


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