Method

NumCosmoMathMemoryPooladd

Declaration [src]

void
ncm_memory_pool_add (
  NcmMemoryPool* mp,
  gpointer p
)

Description [src]

Adds an already allocated pointer p to the pool. It will be freed with NcmMemoryPool->free during the pool destruction.

Parameters

p

Type: gpointer

A pointer to an object compatible with the pool.

The argument can be NULL.
The data is owned by the caller of the method.