Method

NumCosmoMathMemoryPoolget

Declaration [src]

gpointer
ncm_memory_pool_get (
  NcmMemoryPool* mp
)

Description [src]

Search in the pool for a non used slice and return the first finded. If none allocate a new one add to the pool and return it.

Return value

Type: gpointer

A pointer to an unused NcmMemoryPoolSlice.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The return value can be NULL.