tnintemann / rpms / boost

Forked from rpms/boost 3 years ago
Clone

Blame SOURCES/boost-1.54.0-thread-cond_variable_shadow.patch

5dffee
diff -up ./boost/thread/pthread/condition_variable.hpp~ ./boost/thread/pthread/condition_variable.hpp
5dffee
--- ./boost/thread/pthread/condition_variable.hpp~	2013-01-14 18:17:50.000000000 +0100
5dffee
+++ ./boost/thread/pthread/condition_variable.hpp	2013-08-22 11:47:48.330596804 +0200
5dffee
@@ -200,15 +200,15 @@ namespace boost
5dffee
 
5dffee
 #if defined BOOST_THREAD_USES_DATETIME
5dffee
         template<typename lock_type>
5dffee
-        bool timed_wait(lock_type& m,boost::system_time const& wait_until)
5dffee
+        bool timed_wait(lock_type& m,boost::system_time const& a_wait_until)
5dffee
         {
5dffee
-            struct timespec const timeout=detail::to_timespec(wait_until);
5dffee
+            struct timespec const timeout=detail::to_timespec(a_wait_until);
5dffee
             return do_wait_until(m, timeout);
5dffee
         }
5dffee
         template<typename lock_type>
5dffee
-        bool timed_wait(lock_type& m,xtime const& wait_until)
5dffee
+        bool timed_wait(lock_type& m,xtime const& a_wait_until)
5dffee
         {
5dffee
-            return timed_wait(m,system_time(wait_until));
5dffee
+            return timed_wait(m,system_time(a_wait_until));
5dffee
         }
5dffee
 
5dffee
         template<typename lock_type,typename duration_type>
5dffee
@@ -218,20 +218,20 @@ namespace boost
5dffee
         }
5dffee
 
5dffee
         template<typename lock_type,typename predicate_type>
5dffee
-        bool timed_wait(lock_type& m,boost::system_time const& wait_until,predicate_type pred)
5dffee
+        bool timed_wait(lock_type& m,boost::system_time const& a_wait_until,predicate_type pred)
5dffee
         {
5dffee
             while (!pred())
5dffee
             {
5dffee
-                if(!timed_wait(m, wait_until))
5dffee
+                if(!timed_wait(m, a_wait_until))
5dffee
                     return pred();
5dffee
             }
5dffee
             return true;
5dffee
         }
5dffee
 
5dffee
         template<typename lock_type,typename predicate_type>
5dffee
-        bool timed_wait(lock_type& m,xtime const& wait_until,predicate_type pred)
5dffee
+        bool timed_wait(lock_type& m,xtime const& a_wait_until,predicate_type pred)
5dffee
         {
5dffee
-            return timed_wait(m,system_time(wait_until),pred);
5dffee
+            return timed_wait(m,system_time(a_wait_until),pred);
5dffee
         }
5dffee
 
5dffee
         template<typename lock_type,typename duration_type,typename predicate_type>
5dffee
diff -up ./boost/thread/pthread/condition_variable_fwd.hpp~ ./boost/thread/pthread/condition_variable_fwd.hpp
5dffee
--- ./boost/thread/pthread/condition_variable_fwd.hpp~	2013-01-14 18:17:50.000000000 +0100
5dffee
+++ ./boost/thread/pthread/condition_variable_fwd.hpp	2013-08-22 11:46:26.579385366 +0200
5dffee
@@ -98,21 +98,21 @@ namespace boost
5dffee
 #if defined BOOST_THREAD_USES_DATETIME
5dffee
         inline bool timed_wait(
5dffee
             unique_lock<mutex>& m,
5dffee
-            boost::system_time const& wait_until)
5dffee
+            boost::system_time const& a_wait_until)
5dffee
         {
5dffee
 #if defined BOOST_THREAD_WAIT_BUG
5dffee
-            struct timespec const timeout=detail::to_timespec(wait_until + BOOST_THREAD_WAIT_BUG);
5dffee
+            struct timespec const timeout=detail::to_timespec(a_wait_until + BOOST_THREAD_WAIT_BUG);
5dffee
             return do_wait_until(m, timeout);
5dffee
 #else
5dffee
-            struct timespec const timeout=detail::to_timespec(wait_until);
5dffee
+            struct timespec const timeout=detail::to_timespec(a_wait_until);
5dffee
             return do_wait_until(m, timeout);
5dffee
 #endif
5dffee
         }
5dffee
         bool timed_wait(
5dffee
             unique_lock<mutex>& m,
5dffee
-            xtime const& wait_until)
5dffee
+            xtime const& a_wait_until)
5dffee
         {
5dffee
-            return timed_wait(m,system_time(wait_until));
5dffee
+            return timed_wait(m,system_time(a_wait_until));
5dffee
         }
5dffee
 
5dffee
         template<typename duration_type>
5dffee
@@ -126,11 +126,11 @@ namespace boost
5dffee
         template<typename predicate_type>
5dffee
         bool timed_wait(
5dffee
             unique_lock<mutex>& m,
5dffee
-            boost::system_time const& wait_until,predicate_type pred)
5dffee
+            boost::system_time const& a_wait_until,predicate_type pred)
5dffee
         {
5dffee
             while (!pred())
5dffee
             {
5dffee
-                if(!timed_wait(m, wait_until))
5dffee
+                if(!timed_wait(m, a_wait_until))
5dffee
                     return pred();
5dffee
             }
5dffee
             return true;
5dffee
@@ -139,9 +139,9 @@ namespace boost
5dffee
         template<typename predicate_type>
5dffee
         bool timed_wait(
5dffee
             unique_lock<mutex>& m,
5dffee
-            xtime const& wait_until,predicate_type pred)
5dffee
+            xtime const& a_wait_until,predicate_type pred)
5dffee
         {
5dffee
-            return timed_wait(m,system_time(wait_until),pred);
5dffee
+            return timed_wait(m,system_time(a_wait_until),pred);
5dffee
         }
5dffee
 
5dffee
         template<typename duration_type,typename predicate_type>