libsc  2.8.7
The SC library provides support for parallel scientific applications.
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Fields
sc_mstamp Struct Reference

A data container to create memory items of the same size. More...

#include <sc_containers.h>

Collaboration diagram for sc_mstamp:
Collaboration graph
[legend]

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.
 

Detailed Description

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.


The documentation for this struct was generated from the following file: