memorypool

memorypool

Synopsis




                    MemoryPool;
MemoryPool*         memory_pool_new                     (void);
MemoryPool*         memory_pool_with_custom_destructor  (GDestroyNotify notify);
gpointer            memory_pool_add                     (MemoryPool *pool,
                                                         gpointer ptr);
gpointer            memory_pool_allocate                (MemoryPool *pool,
                                                         gsize sz);
void                memory_pool_release                 (MemoryPool *pool,
                                                         gpointer addr);
void                memory_pool_cleanup                 (MemoryPool *pool);
void                memory_pool_destroy                 (MemoryPool *pool);
gchar*              memory_pool_strdup                  (MemoryPool *pool,
                                                         gchar *src);
#define             memory_pool_alloc_object            (pool, obj)

Description

Details

MemoryPool

typedef struct _MemoryPool MemoryPool;


memory_pool_new ()

MemoryPool*         memory_pool_new                     (void);

Returns :


memory_pool_with_custom_destructor ()

MemoryPool*         memory_pool_with_custom_destructor  (GDestroyNotify notify);

notify :

Returns :


memory_pool_add ()

gpointer            memory_pool_add                     (MemoryPool *pool,
                                                         gpointer ptr);

pool :

ptr :

Returns :


memory_pool_allocate ()

gpointer            memory_pool_allocate                (MemoryPool *pool,
                                                         gsize sz);

pool :

sz :

Returns :


memory_pool_release ()

void                memory_pool_release                 (MemoryPool *pool,
                                                         gpointer addr);

pool :

addr :


memory_pool_cleanup ()

void                memory_pool_cleanup                 (MemoryPool *pool);

pool :


memory_pool_destroy ()

void                memory_pool_destroy                 (MemoryPool *pool);

pool :


memory_pool_strdup ()

gchar*              memory_pool_strdup                  (MemoryPool *pool,
                                                         gchar *src);

pool :

src :

Returns :


memory_pool_alloc_object()

#define             memory_pool_alloc_object(pool, obj)

pool :

obj :