Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58837 - in sandbox/task/boost/task: . detail spin
From: oliver.kowalke_at_[hidden]
Date: 2010-01-09 10:04:56


Author: olli
Date: 2010-01-09 10:04:55 EST (Sat, 09 Jan 2010)
New Revision: 58837
URL: http://svn.boost.org/trac/boost/changeset/58837

Log:
update

Text files modified:
   sandbox/task/boost/task/detail/worker.hpp | 6 +++---
   sandbox/task/boost/task/spin/auto_reset_event.hpp | 6 +++---
   sandbox/task/boost/task/spin/condition.hpp | 4 ++--
   sandbox/task/boost/task/spin/count_down_event.hpp | 6 +++---
   sandbox/task/boost/task/spin/manual_reset_event.hpp | 6 +++---
   sandbox/task/boost/task/utility.hpp | 4 ++--
   6 files changed, 16 insertions(+), 16 deletions(-)

Modified: sandbox/task/boost/task/detail/worker.hpp
==============================================================================
--- sandbox/task/boost/task/detail/worker.hpp (original)
+++ sandbox/task/boost/task/detail/worker.hpp 2010-01-09 10:04:55 EST (Sat, 09 Jan 2010)
@@ -53,7 +53,7 @@
 
         virtual void run() = 0;
 
- virtual void block() = 0;
+ virtual void yield() = 0;
 };
 
 template<
@@ -248,7 +248,7 @@
                         sched_.run();
         }
 
- void block()
+ void yield()
         {
                 sched_.make_fiber(
                         bind(
@@ -297,7 +297,7 @@
 
         void run();
 
- void block();
+ void yield();
 
         static worker * tss_get();
 };

Modified: sandbox/task/boost/task/spin/auto_reset_event.hpp
==============================================================================
--- sandbox/task/boost/task/spin/auto_reset_event.hpp (original)
+++ sandbox/task/boost/task/spin/auto_reset_event.hpp 2010-01-09 10:04:55 EST (Sat, 09 Jan 2010)
@@ -35,11 +35,11 @@
 
         bool try_wait();
 
- bool wait( system_time const&);
+ bool timed_wait( system_time const&);
 
         template< typename TimeDuration >
- bool wait( TimeDuration const& rel_time)
- { return wait( get_system_time() + rel_time); }
+ bool timed_wait( TimeDuration const& rel_time)
+ { return timed_wait( get_system_time() + rel_time); }
 };
 
 }}}

Modified: sandbox/task/boost/task/spin/condition.hpp
==============================================================================
--- sandbox/task/boost/task/spin/condition.hpp (original)
+++ sandbox/task/boost/task/spin/condition.hpp 2010-01-09 10:04:55 EST (Sat, 09 Jan 2010)
@@ -125,7 +125,7 @@
                         {
                                 this_thread::interruption_point();
                                 if ( this_task::runs_in_pool() )
- this_task::block();
+ this_task::yield();
                                 else
                                         this_thread::yield();
                                 this_thread::interruption_point();
@@ -197,7 +197,7 @@
                         {
                                 this_thread::interruption_point();
                                 if ( this_task::runs_in_pool() )
- this_task::block();
+ this_task::yield();
                                 else
                                         this_thread::yield();
                                 this_thread::interruption_point();

Modified: sandbox/task/boost/task/spin/count_down_event.hpp
==============================================================================
--- sandbox/task/boost/task/spin/count_down_event.hpp (original)
+++ sandbox/task/boost/task/spin/count_down_event.hpp 2010-01-09 10:04:55 EST (Sat, 09 Jan 2010)
@@ -36,11 +36,11 @@
 
         void wait();
 
- bool wait( system_time const&);
+ bool timed_wait( system_time const&);
 
         template< typename TimeDuration >
- bool wait( TimeDuration const& rel_time)
- { return wait( get_system_time() + rel_time); }
+ bool timed_wait( TimeDuration const& rel_time)
+ { return timed_wait( get_system_time() + rel_time); }
 };
 
 }}}

Modified: sandbox/task/boost/task/spin/manual_reset_event.hpp
==============================================================================
--- sandbox/task/boost/task/spin/manual_reset_event.hpp (original)
+++ sandbox/task/boost/task/spin/manual_reset_event.hpp 2010-01-09 10:04:55 EST (Sat, 09 Jan 2010)
@@ -43,11 +43,11 @@
 
         bool try_wait();
 
- bool wait( system_time const&);
+ bool timed_wait( system_time const&);
 
         template< typename TimeDuration >
- bool wait( TimeDuration const& rel_time)
- { return wait( get_system_time() + rel_time); }
+ bool timed_wait( TimeDuration const& rel_time)
+ { return timed_wait( get_system_time() + rel_time); }
 };
 
 }}}

Modified: sandbox/task/boost/task/utility.hpp
==============================================================================
--- sandbox/task/boost/task/utility.hpp (original)
+++ sandbox/task/boost/task/utility.hpp 2010-01-09 10:04:55 EST (Sat, 09 Jan 2010)
@@ -18,11 +18,11 @@
 namespace this_task {
 
 inline
-void block()
+void yield()
 {
         tasks::detail::worker * w( tasks::detail::worker::tss_get() );
         BOOST_ASSERT( w);
- w->block();
+ w->yield();
 }
 
 inline


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