Basilisk CFD
Adaptive Cartesian mesh PDE framework
Loading...
Searching...
No Matches
mempool.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _Pool
 
struct  Mempool
 
struct  FreeBlock
 

Typedefs

typedef struct _Pool Pool
 

Functions

Mempoolmempool_new (size_t poolsize, size_t size)
 
void mempool_destroy (Mempool *m)
 
voidmempool_alloc (Mempool *m)
 
voidmempool_alloc0 (Mempool *m)
 
void mempool_free (Mempool *m, void *p)
 

Typedef Documentation

◆ Pool

Definition at line 8 of file mempool.h.

Function Documentation

◆ mempool_alloc()

void * mempool_alloc ( Mempool m)

Definition at line 50 of file mempool.h.

References b, i, m(), _Pool::next, FreeBlock::next, p, undefined(), v, and x.

Referenced by mempool_alloc0().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mempool_alloc0()

void * mempool_alloc0 ( Mempool m)

Definition at line 87 of file mempool.h.

References m(), mempool_alloc(), and x.

Referenced by alloc_children().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mempool_destroy()

void mempool_destroy ( Mempool m)

Definition at line 39 of file mempool.h.

References free(), m(), _Pool::next, and p.

Referenced by destroy_layer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mempool_free()

void mempool_free ( Mempool m,
void p 
)

Definition at line 94 of file mempool.h.

References i, m(), p, undefined(), v, and x.

Here is the call graph for this function:

◆ mempool_new()

Mempool * mempool_new ( size_t  poolsize,
size_t  size 
)

Definition at line 25 of file mempool.h.

References assert, m(), min, poolsize(), qcalloc, and size.

Referenced by new_layer().

Here is the call graph for this function:
Here is the caller graph for this function: