Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80372 - trunk/boost/lockfree/detail
From: tim_at_[hidden]
Date: 2012-09-03 06:11:58


Author: timblechmann
Date: 2012-09-03 06:11:57 EDT (Mon, 03 Sep 2012)
New Revision: 80372
URL: http://svn.boost.org/trac/boost/changeset/80372

Log:
lockfree: make freelist's allocate() method protected

Signed-off-by: Tim Blechmann <tim_at_[hidden]>
Text files modified:
   trunk/boost/lockfree/detail/freelist.hpp | 6 ++++--
   1 files changed, 4 insertions(+), 2 deletions(-)

Modified: trunk/boost/lockfree/detail/freelist.hpp
==============================================================================
--- trunk/boost/lockfree/detail/freelist.hpp (original)
+++ trunk/boost/lockfree/detail/freelist.hpp 2012-09-03 06:11:57 EDT (Mon, 03 Sep 2012)
@@ -148,7 +148,7 @@
         return NULL;
     }
 
-private:
+protected: // allow use from subclasses
     template <bool ThreadSafe, bool Bounded>
     T * allocate (void)
     {
@@ -158,6 +158,7 @@
             return allocate_impl_unsafe<Bounded>();
     }
 
+private:
     template <bool Bounded>
     T * allocate_impl (void)
     {
@@ -496,7 +497,7 @@
         return ptr;
     }
 
-private:
+protected: // allow use from subclasses
     template <bool ThreadSafe>
     index_t allocate (void)
     {
@@ -506,6 +507,7 @@
             return allocate_impl_unsafe();
     }
 
+private:
     index_t allocate_impl (void)
     {
         tagged_index old_pool = pool_.load(memory_order_consume);


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