Coconut Framework  beta
CNPool.h
Go to the documentation of this file.
1 
8 #ifndef CNPOOL_H
9 #define CNPOOL_H
10 
11 #include "CNForwarders.h"
12 #include <stdint.h>
13 #include <string.h>
14 
16 struct CNPoolItem ;
17 
22 struct CNPool
23 {
25  struct CNPoolItem * itemList ;
26 } ;
27 
32 void
33 CNInitPool(struct CNPool * dst) ;
34 
41 void *
42 CNAllocateDataToPool(struct CNPool * pool, size_t size) ;
43 
48 void
49 CNDestroyPool(struct CNPool * dst) ;
50 
56 void
57 CNProfileOfPool(struct CNMemoryProfile * dst, const struct CNPool * pool) ;
58 
59 #endif /* CNPOOL_H */
60 
struct CNPoolItem * itemList
List of pool items.
Definition: CNPool.h:25
void CNInitPool(struct CNPool *dst)
Initialize CNPool context.
Pool of variable data.
Definition: CNPool.h:22
Forward declaration of data types.
Information to present memory profile.
Definition: CNMemoryProfile.h:16
void * CNAllocateDataToPool(struct CNPool *pool, size_t size)
Allocate data in the CNPool.
void CNDestroyPool(struct CNPool *dst)
Release context in CNPool.
void CNProfileOfPool(struct CNMemoryProfile *dst, const struct CNPool *pool)
Get memory profile of memory pool.