Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51525 - sandbox/synchro/boost/synchro
From: vicente.botet_at_[hidden]
Date: 2009-03-01 18:37:54


Author: viboes
Date: 2009-03-01 18:37:53 EST (Sun, 01 Mar 2009)
New Revision: 51525
URL: http://svn.boost.org/trac/boost/changeset/51525

Log:
V0.0.0 : binary semaphore

Text files modified:
   sandbox/synchro/boost/synchro/semaphore.hpp | 6 +-----
   1 files changed, 1 insertions(+), 5 deletions(-)

Modified: sandbox/synchro/boost/synchro/semaphore.hpp
==============================================================================
--- sandbox/synchro/boost/synchro/semaphore.hpp (original)
+++ sandbox/synchro/boost/synchro/semaphore.hpp 2009-03-01 18:37:53 EST (Sun, 01 Mar 2009)
@@ -148,17 +148,13 @@
 template <typename ScopeTag=multi_threaded_tag>
 class basic_binary_semaphore: public basic_semaphore<ScopeTag>
 {
- typedef synchronization_family<ScopeTag> Sync;
- typedef typename Sync::mutex_type lockable_type;
- typedef typename Sync::condition_type condition_variable;
- typedef typename unique_lock_type<lockable_type>::type scoped_lock;
 public:
     BOOST_COPY_CONSTRUCTOR_DELETE(basic_binary_semaphore) /*< disable copy construction >*/
     BOOST_COPY_ASSIGNEMENT_DELETE(basic_binary_semaphore) /*< disable copy asignement >*/
 
     //!Creates a semaphore with the given initial count.
     //!exception if there is an error.*/
- inline basic_binary_semaphore(int initialCount):basic_semaphore<ScopeTag>(initialCount>0?1:0) {};
+ inline explict basic_binary_semaphore(int initialCount):basic_semaphore<ScopeTag>(initialCount>0?1:0) {};
     inline void post()
     {
         scoped_lock lock(this->m_mut);


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