Pool.h File Reference
#include "mem/Meter.h"
#include "util.h"
Include dependency graph for Pool.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MemPoolIterator
 
class  mgb_t
 
class  MemPoolMeter
 
class  MemPools
 
class  MemAllocator
 
class  MemImplementingAllocator
 
class  MemPoolStats
 
struct  _MemPoolGlobalStats
 

Macros

#define M_MMAP_MAX   -4
 
#define toMB(size)   ( ((double) size) / ((double)(1024*1024)) )
 
#define toKB(size)   ( (size + 1024 - 1) / 1024 )
 
#define MEM_PAGE_SIZE   4096
 
#define MEM_MIN_FREE   32
 
#define MEM_MAX_FREE   65535 /* unsigned short is max number of items per chunk */
 
#define memPoolCreate   MemPools::GetInstance().create
 

Typedefs

typedef struct _MemPoolGlobalStats MemPoolGlobalStats
 

Functions

MemPoolIteratormemPoolIterate (void)
 
MemImplementingAllocatormemPoolIterateNext (MemPoolIterator *iter)
 
void memPoolIterateDone (MemPoolIterator **iter)
 
int memPoolGetGlobalStats (MemPoolGlobalStats *stats)
 
int memPoolsTotalAllocated (void)
 

Macro Definition Documentation

#define M_MMAP_MAX   -4

Definition at line 45 of file Pool.h.

Referenced by MemPoolChunked::MemPoolChunked().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors