~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/mem0pool.h

  • Committer: Olaf van der Spek
  • Date: 2011-02-12 18:24:24 UTC
  • mto: (2167.1.2 build) (2172.1.4 build)
  • mto: This revision was merged to the branch mainline in revision 2168.
  • Revision ID: olafvdspek@gmail.com-20110212182424-kgnm9osi7qo97at2
casts

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (c) 1994, 2009, Innobase Oy. All Rights Reserved.
 
3
Copyright (C) 1994, 2009, Innobase Oy. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
11
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
12
 
13
13
You should have received a copy of the GNU General Public License along with
14
 
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15
 
Place, Suite 330, Boston, MA 02111-1307 USA
 
14
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
 
15
St, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
*****************************************************************************/
18
18
 
62
62
/*============*/
63
63
        ulint   size);  /*!< in: pool size in bytes */
64
64
/********************************************************************//**
 
65
Frees a memory pool. */
 
66
UNIV_INTERN
 
67
void
 
68
mem_pool_free(
 
69
/*==========*/
 
70
        mem_pool_t*     pool);  /*!< in, own: memory pool */
 
71
/********************************************************************//**
65
72
Allocates memory from a pool. NOTE: This low-level function should only be
66
73
used in mem0mem.*!
67
74
@return own: allocated memory buffer */
93
100
/*==================*/
94
101
        mem_pool_t*     pool);  /*!< in: memory pool */
95
102
/********************************************************************//**
96
 
Reserves the mem pool mutex. */
97
 
UNIV_INTERN
98
 
void
99
 
mem_pool_mutex_enter(void);
100
 
/*======================*/
101
 
/********************************************************************//**
102
 
Releases the mem pool mutex. */
103
 
UNIV_INTERN
104
 
void
105
 
mem_pool_mutex_exit(void);
106
 
/*=====================*/
107
 
/********************************************************************//**
108
103
Validates a memory pool.
109
104
@return TRUE if ok */
110
105
UNIV_INTERN