Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57523 - in sandbox/fiber: boost/fiber libs/fiber/src
From: oliver.kowalke_at_[hidden]
Date: 2009-11-09 14:19:53


Author: olli
Date: 2009-11-09 14:19:52 EST (Mon, 09 Nov 2009)
New Revision: 57523
URL: http://svn.boost.org/trac/boost/changeset/57523

Log:
- this_fiber::interruption_point() / this_fiber::sleep() removed

Text files modified:
   sandbox/fiber/boost/fiber/utility.hpp | 12 ------------
   sandbox/fiber/libs/fiber/src/auto_reset_event.cpp | 4 ----
   sandbox/fiber/libs/fiber/src/condition.cpp | 10 ----------
   sandbox/fiber/libs/fiber/src/count_down_event.cpp | 6 ------
   sandbox/fiber/libs/fiber/src/manual_reset_event.cpp | 6 ------
   sandbox/fiber/libs/fiber/src/mutex.cpp | 6 ------
   6 files changed, 0 insertions(+), 44 deletions(-)

Modified: sandbox/fiber/boost/fiber/utility.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/utility.hpp (original)
+++ sandbox/fiber/boost/fiber/utility.hpp 2009-11-09 14:19:52 EST (Mon, 09 Nov 2009)
@@ -20,10 +20,6 @@
 namespace this_fiber {
 
 inline
-void interruption_point()
-{}
-
-inline
 bool runs_as_fiber()
 { return fiber::scheduler::runs_as_fiber(); }
 
@@ -39,14 +35,6 @@
 void cancel()
 { fiber::scheduler::exit(); }
 
-inline
-void sleep( system_time const& abs_time)
-{}
-
-template< typename TimeDuration >
-void sleep( TimeDuration const& rel_time)
-{}
-
 }}
 
 #include <boost/config/abi_suffix.hpp>

Modified: sandbox/fiber/libs/fiber/src/auto_reset_event.cpp
==============================================================================
--- sandbox/fiber/libs/fiber/src/auto_reset_event.cpp (original)
+++ sandbox/fiber/libs/fiber/src/auto_reset_event.cpp 2009-11-09 14:19:52 EST (Mon, 09 Nov 2009)
@@ -31,9 +31,7 @@
                         & state_, & expected,
                         static_cast< uint32_t >( RESET) ) )
         {
- this_fiber::interruption_point();
                 this_fiber::yield();
- this_fiber::interruption_point();
                 expected = static_cast< uint32_t >( SET);
         }
 }
@@ -48,9 +46,7 @@
                         & state_, & expected,
                         static_cast< uint32_t >( RESET) ) )
         {
- this_fiber::interruption_point();
                 this_fiber::yield();
- this_fiber::interruption_point();
         
                 if ( get_system_time() >= abs_time) return false;
                 expected = static_cast< uint32_t >( SET);

Modified: sandbox/fiber/libs/fiber/src/condition.cpp
==============================================================================
--- sandbox/fiber/libs/fiber/src/condition.cpp (original)
+++ sandbox/fiber/libs/fiber/src/condition.cpp 2009-11-09 14:19:52 EST (Mon, 09 Nov 2009)
@@ -30,11 +30,7 @@
         uint32_t expected = static_cast< uint32_t >( SLEEPING);
         while ( ! detail::atomic_compare_exchange_strong(
                                 & cmd_, & expected, cmd) )
- {
- this_fiber::interruption_point();
                 this_fiber::yield();
- this_fiber::interruption_point();
- }
 }
 
 void
@@ -51,11 +47,7 @@
         for (;;)
         {
                 while ( static_cast< uint32_t >( SLEEPING) == detail::atomic_load( & cmd_) )
- {
- this_fiber::interruption_point();
                         this_fiber::yield();
- this_fiber::interruption_point();
- }
 
                 mutex::scoped_lock lk( check_mtx_);
                 BOOST_ASSERT( lk);
@@ -109,9 +101,7 @@
         {
                 while ( static_cast< uint32_t >( SLEEPING) == detail::atomic_load( & cmd_) )
                 {
- this_fiber::interruption_point();
                         this_fiber::yield();
- this_fiber::interruption_point();
 
                         if ( get_system_time() >= abs_time)
                         {

Modified: sandbox/fiber/libs/fiber/src/count_down_event.cpp
==============================================================================
--- sandbox/fiber/libs/fiber/src/count_down_event.cpp (original)
+++ sandbox/fiber/libs/fiber/src/count_down_event.cpp 2009-11-09 14:19:52 EST (Mon, 09 Nov 2009)
@@ -47,11 +47,7 @@
 count_down_event::wait()
 {
         while ( 0 != detail::atomic_load( & current_) )
- {
- this_fiber::interruption_point();
                 this_fiber::yield();
- this_fiber::interruption_point();
- }
 }
 
 bool
@@ -61,9 +57,7 @@
 
         while ( 0 < detail::atomic_load( & current_) )
         {
- this_fiber::interruption_point();
                 this_fiber::yield();
- this_fiber::interruption_point();
 
                 if ( get_system_time() >= abs_time) return false;
         }

Modified: sandbox/fiber/libs/fiber/src/manual_reset_event.cpp
==============================================================================
--- sandbox/fiber/libs/fiber/src/manual_reset_event.cpp (original)
+++ sandbox/fiber/libs/fiber/src/manual_reset_event.cpp 2009-11-09 14:19:52 EST (Mon, 09 Nov 2009)
@@ -56,11 +56,7 @@
         }
 
         while ( static_cast< uint32_t >( RESET) == detail::atomic_load( & state_) )
- {
- this_fiber::interruption_point();
                 this_fiber::yield();
- this_fiber::interruption_point();
- }
 
         if ( 1 == detail::atomic_fetch_sub( & waiters_, 1) )
                 enter_mtx_.unlock();
@@ -73,9 +69,7 @@
 
         while ( static_cast< uint32_t >( RESET) == detail::atomic_load( & state_) )
         {
- this_fiber::interruption_point();
                 this_fiber::yield();
- this_fiber::interruption_point();
         
                 if ( get_system_time() >= abs_time) return false;
         }

Modified: sandbox/fiber/libs/fiber/src/mutex.cpp
==============================================================================
--- sandbox/fiber/libs/fiber/src/mutex.cpp (original)
+++ sandbox/fiber/libs/fiber/src/mutex.cpp 2009-11-09 14:19:52 EST (Mon, 09 Nov 2009)
@@ -25,11 +25,7 @@
                 if ( detail::atomic_compare_exchange_strong( & state_, & expected, 1) )
                         break;
                 else
- {
- this_fiber::interruption_point();
                         this_fiber::yield();
- this_fiber::interruption_point();
- }
         }
 }
 
@@ -59,9 +55,7 @@
                 if ( get_system_time() >= abs_time)
                         return false;
 
- this_fiber::interruption_point();
                 this_fiber::yield();
- this_fiber::interruption_point();
         }
 
         return true;


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