Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59235 - in sandbox/fiber: . boost/fiber boost/fiber/spin libs/fiber/doc
From: oliver.kowalke_at_[hidden]
Date: 2010-01-23 03:09:16


Author: olli
Date: 2010-01-23 03:09:15 EST (Sat, 23 Jan 2010)
New Revision: 59235
URL: http://svn.boost.org/trac/boost/changeset/59235

Log:
- bugfx related to deactivating channels -> notify all waiting fibers

Text files modified:
   sandbox/fiber/boost/fiber/bounded_channel.hpp | 6 +++++-
   sandbox/fiber/boost/fiber/spin/bounded_channel.hpp | 6 +++++-
   sandbox/fiber/boost/fiber/spin/unbounded_channel.hpp | 5 ++++-
   sandbox/fiber/boost/fiber/unbounded_channel.hpp | 5 ++++-
   sandbox/fiber/change.log | 8 ++++++++
   sandbox/fiber/libs/fiber/doc/overview.qbk | 2 +-
   6 files changed, 27 insertions(+), 5 deletions(-)

Modified: sandbox/fiber/boost/fiber/bounded_channel.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/bounded_channel.hpp (original)
+++ sandbox/fiber/boost/fiber/bounded_channel.hpp 2010-01-23 03:09:15 EST (Sat, 23 Jan 2010)
@@ -167,7 +167,11 @@
         { return lwm_; }
 
         void deactivate()
- { deactivate_(); }
+ {
+ deactivate_();
+ not_empty_cond_.notify_all();
+ not_full_cond_.notify_all();
+ }
 
         bool empty() const
         {

Modified: sandbox/fiber/boost/fiber/spin/bounded_channel.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/spin/bounded_channel.hpp (original)
+++ sandbox/fiber/boost/fiber/spin/bounded_channel.hpp 2010-01-23 03:09:15 EST (Sat, 23 Jan 2010)
@@ -173,7 +173,11 @@
         { return active_(); }
 
         void deactivate()
- { deactivate_(); }
+ {
+ deactivate_();
+ not_empty_cond_.notify_all();
+ not_full_cond_.notify_all();
+ }
 
         bool empty() const
         {

Modified: sandbox/fiber/boost/fiber/spin/unbounded_channel.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/spin/unbounded_channel.hpp (original)
+++ sandbox/fiber/boost/fiber/spin/unbounded_channel.hpp 2010-01-23 03:09:15 EST (Sat, 23 Jan 2010)
@@ -115,7 +115,10 @@
         { return active_(); }
 
         void deactivate()
- { deactivate_(); }
+ {
+ deactivate_();
+ not_empty_cond_.notify_all();
+ }
 
         bool empty() const
         {

Modified: sandbox/fiber/boost/fiber/unbounded_channel.hpp
==============================================================================
--- sandbox/fiber/boost/fiber/unbounded_channel.hpp (original)
+++ sandbox/fiber/boost/fiber/unbounded_channel.hpp 2010-01-23 03:09:15 EST (Sat, 23 Jan 2010)
@@ -106,7 +106,10 @@
         {}
 
         void deactivate()
- { deactivate_(); }
+ {
+ deactivate_();
+ not_empty_cond_.notify_all();
+ }
 
         bool empty() const
         {

Modified: sandbox/fiber/change.log
==============================================================================
--- sandbox/fiber/change.log (original)
+++ sandbox/fiber/change.log 2010-01-23 03:09:15 EST (Sat, 23 Jan 2010)
@@ -1,3 +1,11 @@
+0.3.10:
+------
+- bugfix related to notify all waiting fibers if channel is deactivated
+
+0.3.9:
+------
+- correction for intel compiler
+
 0.3.8:
 ------
 - code formating

Modified: sandbox/fiber/libs/fiber/doc/overview.qbk
==============================================================================
--- sandbox/fiber/libs/fiber/doc/overview.qbk (original)
+++ sandbox/fiber/libs/fiber/doc/overview.qbk 2010-01-23 03:09:15 EST (Sat, 23 Jan 2010)
@@ -52,7 +52,7 @@
 __boost_fiber__ has been tested on the following platforms and compilers:
 
 * Debian GNU/Linux 2.6.31.6 (x86_64), GCC 4.3.4
-* Ubuntu GNU/Linux 2.6.28.11 (x86), GCC 4.3.3
+* Ubuntu GNU/Linux 2.6.28.11 (x86), ICC 11.1
 * FreeBSD 8.0 (x86), GCC 4.2.1
 * OpenSolaris 2009.06 (x86_64), GCC 4.3.2
 * Windows XP Professional (x86), MSVC 9.0


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