Struct amqp_pool_t

Synopsis

#include <librabbitmq/amqp.h>

typedef struct amqp_pool_t_

Description

A memory pool

Since
v0.1

Source

Lines 571-585 in librabbitmq/amqp.h.

typedef struct amqp_pool_t_ {
  size_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
                    * own block in the large_blocks block list */

  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 */
} amqp_pool_t;





Add Discussion as Guest

Log in to DocsForge