|
gwion-util
utilities for the Gwion project
|
memory pool More...
Go to the source code of this file.
Data Structures | |
| struct | MemPool_ |
Macros | |
| #define | mp_malloc(p, name) |
| #define | mp_calloc(p, name) |
| #define | mp_free(p, name, a) |
| #define | mp_free2(p, sz, a) |
| #define | mp_calloc2(p, sz) |
| #define | mp_malloc2(p, sz) |
Typedefs | |
| typedef struct MemPool_ * | MemPool |
Functions | |
| ANN struct pool * | new_pool (const uint32_t elementSize) |
| ANN struct pool * | mp_ini (MemPool p, const uint32_t elementSize) |
| ANN void | mp_end (struct pool *) |
| ANEW ANN void * | _mp_calloc2 (struct pool *, const bool) __attribute__((hot)) |
| ANEW ANN void * | _mp_calloc (MemPool, const m_uint) __attribute__((hot)) |
| ANEW ANN void * | _mp_malloc (MemPool, const m_uint) __attribute__((hot)) |
| ANN void | _mp_free (MemPool, const m_uint, void *) |
| ANN void | _mp_free2 (struct pool *, void *) |
| void * | mp_realloc (MemPool mp, void *ptr, const m_uint curr, const m_uint next) |
| MemPool | mempool_ini (const size_t sz) |
| void | mempool_end (MemPool mp) |
memory pool
Definition in file mpool.h.
| #define mp_calloc | ( | p, | |
| name ) |
| #define mp_calloc2 | ( | p, | |
| sz ) |
| #define mp_free | ( | p, | |
| name, | |||
| a ) |
| #define mp_malloc | ( | p, | |
| name ) |
| #define mp_malloc2 | ( | p, | |
| sz ) |
Definition at line 113 of file mpool.c.
| void mempool_end | ( | MemPool | mp | ) |
| MemPool mempool_ini | ( | const size_t | sz | ) |
Definition at line 66 of file mpool.c.