Drizzled Public API Documentation

mem_pool_struct Struct Reference

List of all members.

Public Attributes

byte * buf
ulint size
ulint reserved
mutex_t mutex
 free_list [64]

Detailed Description

Data structure for a memory pool. The space is allocated using the buddy algorithm, where free list i contains areas of size 2 to power i.

Definition at line 103 of file mem0pool.cc.


Member Data Documentation

memory pool

Definition at line 104 of file mem0pool.cc.

Referenced by mem_area_free(), mem_pool_create(), and mem_pool_free().

lists of free memory areas: an area is put to the list whose number is the 2-logarithm of the area size

Definition at line 110 of file mem0pool.cc.

Referenced by mem_area_alloc(), mem_area_free(), mem_pool_create(), mem_pool_print_info(), and mem_pool_validate().

mutex protecting this struct

Definition at line 108 of file mem0pool.cc.

Referenced by mem_area_alloc(), mem_pool_create(), mem_pool_get_reserved(), and mem_pool_print_info().

amount of currently allocated memory

Definition at line 106 of file mem0pool.cc.

Referenced by mem_area_alloc(), mem_area_free(), mem_pool_create(), mem_pool_get_reserved(), mem_pool_print_info(), and mem_pool_validate().

memory common pool size

Definition at line 105 of file mem0pool.cc.

Referenced by mem_area_alloc(), mem_area_free(), mem_pool_create(), mem_pool_print_info(), and mem_pool_validate().


The documentation for this struct was generated from the following file: