src/corelib/ncbimempool.cpp File Reference

#include <ncbi_pch.hpp>
#include <corelib/ncbimempool.hpp>
#include <corelib/error_codes.hpp>

Include dependency graph for ncbimempool.cpp:

Go to the source code of this file.

Classes

class  CObjectMemoryPoolChunk
struct  CObjectMemoryPoolChunk::SHeader

Defines

#define NCBI_USE_ERRCODE_X   Corelib_Object
#define RegisterMemoryChunk(size)
#define DeregisterMemoryChunk(size)
#define ObjFatal   Fatal

Variables

static const size_t kDefaultChunkSize = 8192
static const size_t kMinChunkSize = 128
static const size_t kDefaultThresholdRatio = 16
static const size_t kMinThresholdRatio = 2
static const size_t kMinThreshold = 4


Define Documentation

#define DeregisterMemoryChunk size   ) 
 

Definition at line 88 of file ncbimempool.cpp.

Referenced by CObjectMemoryPoolChunk::~CObjectMemoryPoolChunk().

#define NCBI_USE_ERRCODE_X   Corelib_Object
 

Definition at line 42 of file ncbimempool.cpp.

#define ObjFatal   Fatal
 

Definition at line 92 of file ncbimempool.cpp.

Referenced by CObject::DoDeleteThisObject(), CObjectMemoryPoolChunk::GetChunk(), CObject::RemoveLastReference(), and CObject::~CObject().

#define RegisterMemoryChunk size   ) 
 

Definition at line 87 of file ncbimempool.cpp.

Referenced by CObjectMemoryPoolChunk::CObjectMemoryPoolChunk().


Variable Documentation

const size_t kDefaultChunkSize = 8192 [static]
 

Definition at line 48 of file ncbimempool.cpp.

Referenced by CObjectMemoryPool::SetChunkSize().

const size_t kDefaultThresholdRatio = 16 [static]
 

Definition at line 51 of file ncbimempool.cpp.

Referenced by CObjectMemoryPool::SetMallocThreshold().

const size_t kMinChunkSize = 128 [static]
 

Definition at line 49 of file ncbimempool.cpp.

Referenced by CObjectMemoryPool::SetChunkSize().

const size_t kMinThreshold = 4 [static]
 

Definition at line 53 of file ncbimempool.cpp.

Referenced by CObjectMemoryPool::SetMallocThreshold().

const size_t kMinThresholdRatio = 2 [static]
 

Definition at line 52 of file ncbimempool.cpp.

Referenced by CObjectMemoryPool::SetMallocThreshold().


Generated on Mon Dec 7 07:36:42 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:21:45 2009 by modify_doxy.py rev. 173732