libsc
2.8.7
The SC library provides support for parallel scientific applications.
|
A data container to create memory items of the same size. More...
#include <sc_containers.h>
Data Fields | |
size_t | elem_size |
Input parameter: size per item. | |
size_t | per_stamp |
Number of items per stamp. | |
size_t | stamp_size |
Bytes allocated in a stamp. | |
size_t | cur_snext |
Next number within a stamp. | |
char * | current |
Memory of current stamp. | |
sc_array_t | remember |
Collects all stamps. | |
A data container to create memory items of the same size.
Allocations are bundled so it's fast for small memory sizes. The items created will remain valid until the container is destroyed. There is no option to return an item to the container. See sc_mempool_t for that purpose.