Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51327 - sandbox/synchro/boost/synchro/conc
From: vicente.botet_at_[hidden]
Date: 2009-02-19 07:28:35


Author: viboes
Date: 2009-02-19 07:28:34 EST (Thu, 19 Feb 2009)
New Revision: 51327
URL: http://svn.boost.org/trac/boost/changeset/51327

Log:
concurrent_component needs semaphore not binary_semaphore
Text files modified:
   sandbox/synchro/boost/synchro/conc/concurrent_component.hpp | 12 ++++++------
   1 files changed, 6 insertions(+), 6 deletions(-)

Modified: sandbox/synchro/boost/synchro/conc/concurrent_component.hpp
==============================================================================
--- sandbox/synchro/boost/synchro/conc/concurrent_component.hpp (original)
+++ sandbox/synchro/boost/synchro/conc/concurrent_component.hpp 2009-02-19 07:28:34 EST (Thu, 19 Feb 2009)
@@ -123,8 +123,8 @@
             p.accept(abs_time);
         }
 #endif
- binary_semaphore accept_call_;
- binary_semaphore until_end_;
+ semaphore accept_call_;
+ semaphore until_end_;
     };
     static void accept(port& p) {
 // accept_call_.common_.post(1);
@@ -169,8 +169,8 @@
             accept_call_.post();
             until_end_.wait();
         }
- binary_semaphore accept_call_;
- binary_semaphore until_end_;
+ semaphore accept_call_;
+ semaphore until_end_;
         const concurrent_component_base* sender_;
     };
     static void accept(object_port& that, const concurrent_component_base* snd) {
@@ -206,8 +206,8 @@
 // static void accept(object_port& that, const concurrent_component_base* snd) {
 // that.accept(snd);
 // }
- binary_semaphore accept_call_;
- binary_semaphore until_end_;
+ semaphore accept_call_;
+ semaphore until_end_;
 // const std::type_info* type_;
     };
     template <typename TYPE>


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