forward.h File Reference
#include "mem/AllocatorProxy.h"
#include <iosfwd>
Include dependency graph for forward.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Mem
 Memory Management.
 

Typedefs

typedef void FREE (void *)
 

Enumerations

enum  mem_type {
  MEM_NONE,
  MEM_2K_BUF,
  MEM_4K_BUF,
  MEM_8K_BUF,
  MEM_16K_BUF,
  MEM_32K_BUF,
  MEM_64K_BUF,
  MEM_DREAD_CTRL,
  MEM_DWRITE_Q,
  MEM_MD5_DIGEST,
  MEM_MAX
}
 Types of memory pool which do not yet use MEMPROXY_CLASS() API. More...
 

Functions

void Mem::Init ()
 
void Mem::Report ()
 
void Mem::Stats (StoreEntry *)
 
void Mem::CleanIdlePools (void *unused)
 
void Mem::Report (std::ostream &)
 
void Mem::PoolReport (const MemPoolStats *mp_st, const MemPoolMeter *AllMeter, std::ostream &)
 
void memClean (void)
 Main cleanup handler. More...
 
void memInitModule (void)
 
void memCleanModule (void)
 
void memConfigure (void)
 
void * memAllocate (mem_type)
 Allocate one element from the typed pool. More...
 
void * memAllocString (size_t net_size, size_t *gross_size)
 
void * memAllocBuf (size_t net_size, size_t *gross_size)
 
void * memReallocBuf (void *buf, size_t net_size, size_t *gross_size)
 
void memFree (void *, int type)
 Free a element allocated by memAllocate() More...
 
void memFreeString (size_t size, void *)
 
void memFreeBuf (size_t size, void *)
 
FREEmemFreeBufFunc (size_t size)
 
int memInUse (mem_type)
 
void memDataInit (mem_type, const char *, size_t, int, bool doZero=true)
 
void memCheckInit (void)
 

Variables

const size_t squidSystemPageSize
 

Typedef Documentation

typedef void FREE(void *)
Deprecated:
use MEMPROXY_CLASS instead.

Definition at line 36 of file forward.h.

Enumeration Type Documentation

enum mem_type
Enumerator
MEM_NONE 
MEM_2K_BUF 
MEM_4K_BUF 
MEM_8K_BUF 
MEM_16K_BUF 
MEM_32K_BUF 
MEM_64K_BUF 
MEM_DREAD_CTRL 
MEM_DWRITE_Q 
MEM_MD5_DIGEST 
MEM_MAX 

Definition at line 39 of file forward.h.

Function Documentation

void* memAllocString ( size_t  net_size,
size_t gross_size 
)
void memCheckInit ( void  )

Definition at line 473 of file old_api.cc.

References assert, GetPool(), MEM_MAX, and MEM_NONE.

Referenced by mainInitialize().

void memCleanModule ( void  )

Definition at line 32 of file stub_libmem.cc.

void memConfigure ( void  )
void memDataInit ( mem_type  ,
const char *  ,
size_t  ,
int  ,
bool  doZero = true 
)

Definition at line 206 of file old_api.cc.

References assert, GetPool(), memPoolCreate, NULL, and MemAllocator::zeroBlocks().

Referenced by Mem::Init().

void memFreeString ( size_t  size,
void *   
)
void memInitModule ( void  )

Definition at line 31 of file stub_libmem.cc.

int memInUse ( mem_type  )

Definition at line 502 of file old_api.cc.

References GetPool(), and MemAllocator::inUseCount().

void* memReallocBuf ( void *  buf,
size_t  net_size,
size_t gross_size 
)

Variable Documentation

const size_t squidSystemPageSize

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors