|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52624 - sandbox/memory/boost/memory
From: xushiweizh_at_[hidden]
Date: 2009-04-27 07:20:13
Author: xushiwei
Date: 2009-04-27 07:20:12 EDT (Mon, 27 Apr 2009)
New Revision: 52624
URL: http://svn.boost.org/trac/boost/changeset/52624
Log:
t
Text files modified:
sandbox/memory/boost/memory/object_pool.hpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Modified: sandbox/memory/boost/memory/object_pool.hpp
==============================================================================
--- sandbox/memory/boost/memory/object_pool.hpp (original)
+++ sandbox/memory/boost/memory/object_pool.hpp 2009-04-27 07:20:12 EDT (Mon, 27 Apr 2009)
@@ -45,18 +45,18 @@
#pragma pack()
protected:
- size_t BOOST_MEMORY_CALL is_allocated_(void*p )
+ __forceinline size_t BOOST_MEMORY_CALL is_allocated_(void*p )
{
return 1 & ((ChunkHeader*)p - 1)->tag;
}
- void BOOST_MEMORY_CALL mark_allocated_(void* p)
+ __forceinline void BOOST_MEMORY_CALL mark_allocated_(void* p)
{
BOOST_MEMORY_ASSERT(!is_allocated_(p));
++((ChunkHeader*)p - 1)->tag;
}
- void BOOST_MEMORY_CALL mark_deallocated_(void* p)
+ __forceinline void BOOST_MEMORY_CALL mark_deallocated_(void* p)
{
BOOST_MEMORY_ASSERT(is_allocated_(p));
--((ChunkHeader*)p - 1)->tag;
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