Drizzled Public API Documentation

mem_pool_struct Struct Reference

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

byte* mem_pool_struct::buf

memory pool

Definition at line 104 of file mem0pool.cc.

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

mem_pool_struct::free_list[64]

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_t mem_pool_struct::mutex

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().

ulint mem_pool_struct::reserved

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().

ulint mem_pool_struct::size

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: