drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
mem0pool.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (C) 1994, 2009, Innobase Oy. All Rights Reserved.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License as published by the Free Software
7Foundation; version 2 of the License.
8
9This program is distributed in the hope that it will be useful, but WITHOUT
10ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License along with
14this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15St, Fifth Floor, Boston, MA 02110-1301 USA
16
17*****************************************************************************/
18
19/**************************************************/
25
26#pragma once
27#ifndef mem0pool_h
28#define mem0pool_h
29
30#include "univ.i"
31#include "os0file.h"
32#include "ut0lst.h"
33
38
41
43
52
54#define MEM_AREA_EXTRA_SIZE (ut_calc_align(sizeof(struct mem_area_struct),\
55 UNIV_MEM_ALIGNMENT))
56
57/********************************************************************/
60UNIV_INTERN
63/*============*/
64 ulint size);
65/********************************************************************/
67UNIV_INTERN
68void
70/*==========*/
71 mem_pool_t* pool);
72/********************************************************************/
76UNIV_INTERN
77void*
79/*===========*/
80 ulint* psize,
85 mem_pool_t* pool);
86/********************************************************************/
88UNIV_INTERN
89void
91/*==========*/
92 void* ptr,
94 mem_pool_t* pool);
95/********************************************************************/
98UNIV_INTERN
99ulint
101/*==================*/
102 mem_pool_t* pool);
103/********************************************************************/
106UNIV_INTERN
107ibool
109/*==============*/
110 mem_pool_t* pool);
111/********************************************************************/
113UNIV_INTERN
114void
116/*================*/
117 FILE* outfile,
118 mem_pool_t* pool);
119
120
121#ifndef UNIV_NONINL
122#include "mem0pool.ic"
123#endif
124
125#endif
struct mem_pool_struct mem_pool_t
Definition mem0pool.h:37
UNIV_INTERN void mem_area_free(void *ptr, mem_pool_t *pool)
Definition mem0pool.cc:510
UNIV_INTERN mem_pool_t * mem_pool_create(ulint size)
Definition mem0pool.cc:220
struct mem_area_struct mem_area_t
Definition mem0pool.h:35
UNIV_INTERN void mem_pool_print_info(FILE *outfile, mem_pool_t *pool)
Definition mem0pool.cc:686
UNIV_INTERN void * mem_area_alloc(ulint *psize, mem_pool_t *pool)
Definition mem0pool.cc:368
UNIV_INTERN ulint mem_pool_get_reserved(mem_pool_t *pool)
Definition mem0pool.cc:720
mem_pool_t * mem_comm_pool
Definition mem0pool.cc:116
UNIV_INTERN void mem_pool_free(mem_pool_t *pool)
Definition mem0pool.cc:283
UNIV_INTERN ibool mem_pool_validate(mem_pool_t *pool)
Definition mem0pool.cc:640
ulint size_and_free
Definition mem0pool.h:45
#define UT_LIST_NODE_T(TYPE)
Definition ut0lst.h:73