Ardour  9.0-pre0-822-g12e3bc5c20
PBD::TLSF Class Reference

#include <tlsf.h>

Public Member Functions

 TLSF (std::string name, size_t bytes)
 
 ~TLSF ()
 
void set_name (const std::string &n)
 
void * malloc (size_t size)
 
void * realloc (void *ptr, size_t newsize)
 
void free (void *ptr)
 
size_t get_used_size () const
 
size_t get_max_size () const
 

Static Public Member Functions

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

Private Member Functions

void * _malloc (size_t)
 
void * _realloc (void *, size_t)
 
void _free (void *)
 

Private Attributes

std::string _name
 
char * _mp
 

Detailed Description

Definition at line 29 of file tlsf.h.

Constructor & Destructor Documentation

◆ TLSF()

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

◆ ~TLSF()

PBD::TLSF::~TLSF ( )

Member Function Documentation

◆ _free()

void PBD::TLSF::_free ( void *  )
private

◆ _malloc()

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

◆ _realloc()

void* PBD::TLSF::_realloc ( void *  ,
size_t   
)
private

◆ free()

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

Definition at line 45 of file tlsf.h.

◆ get_max_size()

size_t PBD::TLSF::get_max_size ( ) const

◆ get_used_size()

size_t PBD::TLSF::get_used_size ( ) const

◆ lalloc()

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

Definition at line 37 of file tlsf.h.

◆ malloc()

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

Definition at line 41 of file tlsf.h.

◆ realloc()

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

Definition at line 43 of file tlsf.h.

◆ set_name()

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

Definition at line 35 of file tlsf.h.

Member Data Documentation

◆ _mp

char* PBD::TLSF::_mp
private

Definition at line 52 of file tlsf.h.

◆ _name

std::string PBD::TLSF::_name
private

Definition at line 51 of file tlsf.h.


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