|
|
@ -432,7 +432,7 @@ inline void CClassMemoryPool<T>::Clear() |
|
|
|
static CUtlMemoryPool s_Allocator |
|
|
|
static CUtlMemoryPool s_Allocator |
|
|
|
|
|
|
|
|
|
|
|
#define DEFINE_FIXEDSIZE_ALLOCATOR( _class, _initsize, _grow ) \ |
|
|
|
#define DEFINE_FIXEDSIZE_ALLOCATOR( _class, _initsize, _grow ) \ |
|
|
|
CUtlMemoryPool _class::s_Allocator(sizeof(_class), _initsize, _grow, #_class " pool") |
|
|
|
CUtlMemoryPool _class::s_Allocator(sizeof(_class), _initsize, _grow, #_class " pool", alignof(_class)) |
|
|
|
|
|
|
|
|
|
|
|
#define DEFINE_FIXEDSIZE_ALLOCATOR_ALIGNED( _class, _initsize, _grow, _alignment ) \ |
|
|
|
#define DEFINE_FIXEDSIZE_ALLOCATOR_ALIGNED( _class, _initsize, _grow, _alignment ) \ |
|
|
|
CUtlMemoryPool _class::s_Allocator(sizeof(_class), _initsize, _grow, #_class " pool", _alignment ) |
|
|
|
CUtlMemoryPool _class::s_Allocator(sizeof(_class), _initsize, _grow, #_class " pool", _alignment ) |
|
|
@ -447,7 +447,7 @@ inline void CClassMemoryPool<T>::Clear() |
|
|
|
static CMemoryPoolMT s_Allocator |
|
|
|
static CMemoryPoolMT s_Allocator |
|
|
|
|
|
|
|
|
|
|
|
#define DEFINE_FIXEDSIZE_ALLOCATOR_MT( _class, _initsize, _grow ) \ |
|
|
|
#define DEFINE_FIXEDSIZE_ALLOCATOR_MT( _class, _initsize, _grow ) \ |
|
|
|
CMemoryPoolMT _class::s_Allocator(sizeof(_class), _initsize, _grow, #_class " pool") |
|
|
|
CMemoryPoolMT _class::s_Allocator(sizeof(_class), _initsize, _grow, #_class " pool", alignof(_class)) |
|
|
|
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Macros that make it simple to make a class use a fixed-size allocator
|
|
|
|
// Macros that make it simple to make a class use a fixed-size allocator
|
|
|
|