tnintemann / rpms / boost

Forked from rpms/boost 3 years ago
Clone

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

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