Ardour  9.0-pre0-350-gf17a656217
PBD::ReallocPool Class Reference

#include <reallocpool.h>

Public Member Functions

 ReallocPool (std::string name, size_t bytes)
 
 ~ReallocPool ()
 
void set_name (const std::string &n)
 
void * malloc (size_t size)
 
void free (void *ptr)
 
void * realloc (void *ptr, size_t newsize)
 
void printstats ()
 
void dumpsegments ()
 

Static Public Member Functions

static void * lalloc (void *pool, void *ptr, size_t oldsize, size_t newsize)
 

Private Member Functions

void * _realloc (void *ptr, size_t oldsize, size_t newsize)
 
void * _malloc (size_t)
 
void _free (void *ptr)
 
void _shrink (void *, size_t)
 
size_t _asize (void *)
 
void consolidate_ptr (char *)
 

Private Attributes

std::string _name
 
size_t _poolsize
 
char * _pool
 
char * _mru
 

Detailed Description

Definition at line 43 of file reallocpool.h.

Constructor & Destructor Documentation

◆ ReallocPool()

PBD::ReallocPool::ReallocPool ( std::string  name,
size_t  bytes 
)

◆ ~ReallocPool()

PBD::ReallocPool::~ReallocPool ( )

Member Function Documentation

◆ _asize()

size_t PBD::ReallocPool::_asize ( void *  )
private

◆ _free()

void PBD::ReallocPool::_free ( void *  ptr)
private

◆ _malloc()

void* PBD::ReallocPool::_malloc ( size_t  )
private

◆ _realloc()

void* PBD::ReallocPool::_realloc ( void *  ptr,
size_t  oldsize,
size_t  newsize 
)
private

◆ _shrink()

void PBD::ReallocPool::_shrink ( void *  ,
size_t   
)
private

◆ consolidate_ptr()

void PBD::ReallocPool::consolidate_ptr ( char *  )
private

◆ dumpsegments()

void PBD::ReallocPool::dumpsegments ( )

◆ free()

void PBD::ReallocPool::free ( void *  ptr)
inline

Definition at line 59 of file reallocpool.h.

◆ lalloc()

static void* PBD::ReallocPool::lalloc ( void *  pool,
void *  ptr,
size_t  oldsize,
size_t  newsize 
)
inlinestatic

Definition at line 51 of file reallocpool.h.

◆ malloc()

void* PBD::ReallocPool::malloc ( size_t  size)
inline

Definition at line 55 of file reallocpool.h.

◆ printstats()

void PBD::ReallocPool::printstats ( )

◆ realloc()

void* PBD::ReallocPool::realloc ( void *  ptr,
size_t  newsize 
)
inline

Definition at line 63 of file reallocpool.h.

◆ set_name()

void PBD::ReallocPool::set_name ( const std::string &  n)
inline

Definition at line 49 of file reallocpool.h.

Member Data Documentation

◆ _mru

char* PBD::ReallocPool::_mru
private

Definition at line 78 of file reallocpool.h.

◆ _name

std::string PBD::ReallocPool::_name
private

Definition at line 75 of file reallocpool.h.

◆ _pool

char* PBD::ReallocPool::_pool
private

Definition at line 77 of file reallocpool.h.

◆ _poolsize

size_t PBD::ReallocPool::_poolsize
private

Definition at line 76 of file reallocpool.h.


The documentation for this class was generated from the following file: