|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r71975 - sandbox/block_ptr/boost
From: phil_at_[hidden]
Date: 2011-05-16 03:08:58
Author: pbouchard
Date: 2011-05-16 03:08:58 EDT (Mon, 16 May 2011)
New Revision: 71975
URL: http://svn.boost.org/trac/boost/changeset/71975
Log:
* Removed unnecessary pool mutex from block_header
Text files modified:
sandbox/block_ptr/boost/block_ptr.hpp | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
Modified: sandbox/block_ptr/boost/block_ptr.hpp
==============================================================================
--- sandbox/block_ptr/boost/block_ptr.hpp (original)
+++ sandbox/block_ptr/boost/block_ptr.hpp 2011-05-16 03:08:58 EDT (Mon, 16 May 2011)
@@ -78,10 +78,6 @@
intrusive_list includes_; /**< List of all sets of an union. */
intrusive_list elements_; /**< List of all pointee objects belonging to a @c block_header . */
-#ifndef BOOST_DISABLE_THREADS
- static mutex pool_mutex_;
-#endif
-
static fast_pool_allocator<block_header> pool_;/**< Pool where all sets are allocated. */
/**
@@ -172,9 +168,6 @@
void * operator new (size_t s)
{
-#ifndef BOOST_DISABLE_THREADS
- mutex::scoped_lock scoped_lock(pool_mutex_);
-#endif
return pool_.allocate(s);
}
@@ -201,16 +194,12 @@
void operator delete (void * p)
{
-#ifndef BOOST_DISABLE_THREADS
- mutex::scoped_lock scoped_lock(pool_mutex_);
-#endif
pool_.deallocate(static_cast<block_header *>(p), sizeof(block_header));
}
};
#ifndef BOOST_DISABLE_THREADS
mutex block_header::mutex_;
-mutex block_header::pool_mutex_;
#endif
fast_pool_allocator<block_header> block_header::pool_;
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