Coconut Framework
beta
|
Define CNResourcePooldata structure. More...
Go to the source code of this file.
Classes | |
struct | CNResourcePool |
Resource pool to keep same size objects. More... | |
Functions | |
struct CNResourcePool * | CNAllocateResourcePool (struct CNResourceLinks *pool, size_t size) |
Allocate CNResourcePool object. More... | |
void | CNFreeResourcePool (struct CNResourcePool *pool) |
Deallocate CNResourcePool object. More... | |
void * | CNAllocateDataToResourcePool (struct CNResourcePool *pool) |
Allocate data in the resource. More... | |
void | CNReleaseDataToResourcePool (struct CNResourcePool *pool, void *src) |
Release data to the resource pool. More... | |
void | CNProfileOfResourcePool (struct CNMemoryProfile *dst, const struct CNResourcePool *pool) |
Get memory profile of resource pool. More... | |
Define CNResourcePooldata structure.
struct CNResourcePool* CNAllocateResourcePool | ( | struct CNResourceLinks * | pool, |
size_t | size | ||
) |
Allocate CNResourcePool object.
pool | Link list for the resource |
size | Size of data |
void CNFreeResourcePool | ( | struct CNResourcePool * | pool | ) |
Deallocate CNResourcePool object.
pool | Destination pool |
void* CNAllocateDataToResourcePool | ( | struct CNResourcePool * | pool | ) |
Allocate data in the resource.
pool | Pool to allocate the data |
void CNReleaseDataToResourcePool | ( | struct CNResourcePool * | pool, |
void * | src | ||
) |
Release data to the resource pool.
pool | Destination resource pool |
src | Source data to be released |
void CNProfileOfResourcePool | ( | struct CNMemoryProfile * | dst, |
const struct CNResourcePool * | pool | ||
) |
Get memory profile of resource pool.
dst | Destination to store profile |
pool | Source resource pool |