Function t8_default_mempool_free

Function Documentation

static inline void t8_default_mempool_free(sc_mempool_t *scheme_context, int length, t8_element_t **elem)

This class independent function assumes an sc_mempool_t as context. It is suitable as the element_destroy callback in t8_default_scheme_common. We assume that the mempool has been created with the correct element size.

Parameters:
  • scheme_context[inout] An element is returned to this sc_mempool_t.

  • length[in] Non-negative number of elements to destroy.

  • elem[inout] Array whose members are returned to the mempool.