Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71997 - sandbox/block_ptr/boost/detail
From: phil_at_[hidden]
Date: 2011-05-16 16:12:12


Author: pbouchard
Date: 2011-05-16 16:12:11 EDT (Mon, 16 May 2011)
New Revision: 71997
URL: http://svn.boost.org/trac/boost/changeset/71997

Log:
* Code cleanup
Text files modified:
   sandbox/block_ptr/boost/detail/block_base.hpp | 20 --------------------
   1 files changed, 0 insertions(+), 20 deletions(-)

Modified: sandbox/block_ptr/boost/detail/block_base.hpp
==============================================================================
--- sandbox/block_ptr/boost/detail/block_base.hpp (original)
+++ sandbox/block_ptr/boost/detail/block_base.hpp 2011-05-16 16:12:11 EDT (Mon, 16 May 2011)
@@ -67,10 +67,6 @@
 
 struct pool
 {
-#ifndef BOOST_DISABLE_THREADS
- static mutex mutex_;
-#endif
-
         typedef boost::singleton_pool<pool, sizeof(char)> pool_t;
 
         typedef std::list< numeric::interval<long>, fast_pool_allocator< numeric::interval<long> > > pool_lii; /**< Syntax helper. */
@@ -118,10 +114,6 @@
         
     static block_base * top(void * p)
     {
-#ifndef BOOST_DISABLE_THREADS
- mutex::scoped_lock scoped_lock(mutex_);
-#endif
-
             init();
             
         pool_lii::reverse_iterator i;
@@ -145,10 +137,6 @@
         
     static void * allocate(std::size_t s)
     {
-#ifndef BOOST_DISABLE_THREADS
- mutex::scoped_lock scoped_lock(mutex_);
-#endif
-
             init();
             
         void * p = pool_t::ordered_malloc(s);
@@ -168,10 +156,6 @@
         
     static void deallocate(void * p, std::size_t s)
     {
-#ifndef BOOST_DISABLE_THREADS
- mutex::scoped_lock scoped_lock(mutex_);
-#endif
-
             init();
             
         pool_lii::reverse_iterator i;
@@ -185,10 +169,6 @@
     }
 };
 
-#ifndef BOOST_DISABLE_THREADS
-mutex pool::mutex_;
-#endif
-
 
 /**
         Root class of all pointee objects.


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