minimal.cc File Reference
#include "squid.h"
#include "mem/AllocatorProxy.h"
#include "mem/forward.h"
Include dependency graph for minimal.cc:

Go to the source code of this file.

Functions

void * memAllocBuf (const size_t netSize, size_t *const grossSize)
 
void * memReallocBuf (void *const oldBuf, const size_t netSize, size_t *const grossSize)
 
void memFree (void *memory, int)
 Free a element allocated by memAllocate() More...
 
void memFreeBuf (size_t, void *const buf)
 
static void myFree (void *const buf)
 
FREEmemFreeBufFunc (size_t)
 

Variables

static int Alive = 0
 

Function Documentation

◆ memAllocBuf()

void* memAllocBuf ( const size_t  netSize,
size_t *const  grossSize 
)

Definition at line 46 of file minimal.cc.

References xmalloc.

◆ memFree()

void memFree ( void *  memory,
int   
)

Definition at line 61 of file minimal.cc.

References xfree.

◆ memFreeBuf()

void memFreeBuf ( size_t  ,
void *const  buf 
)

Definition at line 67 of file minimal.cc.

References xfree.

◆ memFreeBufFunc()

FREE* memFreeBufFunc ( size_t  )

Definition at line 79 of file minimal.cc.

References myFree().

◆ memReallocBuf()

void* memReallocBuf ( void *const  oldBuf,
const size_t  netSize,
size_t *const  grossSize 
)

Definition at line 54 of file minimal.cc.

References xrealloc().

◆ myFree()

static void myFree ( void *const  buf)
static

Definition at line 73 of file minimal.cc.

References xfree.

Referenced by memFreeBufFunc().

Variable Documentation

◆ Alive

int Alive = 0
static

The number of currently alive objects (poor man's meter.alloc=meter.inuse). Technically, this is supposed to be a per-allocator statistics, but AllocatorProxy is not a Mem::Allocator so we maintain a global counter instead. We probably do not have to maintain this statistics at all.

Definition at line 17 of file minimal.cc.

 

Introduction

Documentation

Support

Miscellaneous