Boost logo

Boost-Commit :

From: anthony_at_[hidden]
Date: 2007-11-26 16:15:05


Author: anthonyw
Date: 2007-11-26 16:15:04 EST (Mon, 26 Nov 2007)
New Revision: 41405
URL: http://svn.boost.org/trac/boost/changeset/41405

Log:
reverted accidental checkin of new timed_wait functions on condition_variable
Text files modified:
   trunk/boost/thread/pthread/condition_variable.hpp | 6 ------
   trunk/boost/thread/pthread/condition_variable_fwd.hpp | 6 ------
   trunk/boost/thread/win32/condition_variable.hpp | 11 -----------
   3 files changed, 0 insertions(+), 23 deletions(-)

Modified: trunk/boost/thread/pthread/condition_variable.hpp
==============================================================================
--- trunk/boost/thread/pthread/condition_variable.hpp (original)
+++ trunk/boost/thread/pthread/condition_variable.hpp 2007-11-26 16:15:04 EST (Mon, 26 Nov 2007)
@@ -150,12 +150,6 @@
             return true;
         }
 
- template<typename lock_type,typename duration_type,typename predicate_type>
- bool timed_wait(lock_type& m,duration_type const& wait_duration,predicate_type pred)
- {
- return timed_wait(m,get_system_time()+wait_duration,pred);
- }
-
         void notify_one()
         {
             boost::pthread::pthread_mutex_scoped_lock internal_lock(&internal_mutex);

Modified: trunk/boost/thread/pthread/condition_variable_fwd.hpp
==============================================================================
--- trunk/boost/thread/pthread/condition_variable_fwd.hpp (original)
+++ trunk/boost/thread/pthread/condition_variable_fwd.hpp 2007-11-26 16:15:04 EST (Mon, 26 Nov 2007)
@@ -44,12 +44,6 @@
             return true;
         }
 
- template<typename duration_type,typename predicate_type>
- bool timed_wait(unique_lock<mutex>& m,duration_type const& wait_duration,predicate_type pred)
- {
- return timed_wait(m,get_system_time()+wait_duration,pred);
- }
-
         void notify_one();
         void notify_all();
     };

Modified: trunk/boost/thread/win32/condition_variable.hpp
==============================================================================
--- trunk/boost/thread/win32/condition_variable.hpp (original)
+++ trunk/boost/thread/win32/condition_variable.hpp 2007-11-26 16:15:04 EST (Mon, 26 Nov 2007)
@@ -263,11 +263,6 @@
             }
             return true;
         }
- template<typename duration_type,typename predicate_type>
- bool timed_wait(unique_lock<mutex>& m,duration_type const& wait_duration,predicate_type pred)
- {
- return timed_wait(m,get_system_time()+wait_duration,pred);
- }
     };
     
     class condition_variable_any:
@@ -302,12 +297,6 @@
             }
             return true;
         }
-
- template<typename lock_type,typename duration_type,typename predicate_type>
- bool timed_wait(lock_type& m,duration_type const& wait_duration,predicate_type pred)
- {
- return timed_wait(m,get_system_time()+wait_duration,pred);
- }
     };
 
 }


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