rabbitmq-c
0.2
C AMQP Client library for RabbitMQ
|
A memory pool. More...
#include <amqp.h>
Data Fields | |
size_t | pagesize |
the size of the page in bytes. | |
amqp_pool_blocklist_t | pages |
blocks that are the size of pagesize | |
amqp_pool_blocklist_t | large_blocks |
allocations larger than the pagesize | |
int | next_page |
an index to the next unused page block | |
char * | alloc_block |
pointer to the current allocation block | |
size_t | alloc_used |
number of bytes in the current allocation block that has been used | |
A memory pool.
size_t amqp_pool_t::pagesize |
the size of the page in bytes.
allocations less than or equal to this size are allocated in the pages block list allocations greater than this are allocated in their own block in the large_blocks block list