MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Pool_context Struct Reference
Collaboration diagram for Pool_context:

Public Member Functions

void * get_memroot ()
void * alloc_page (Uint32 type_id, Uint32 *i)
void release_page (Uint32 type_id, Uint32 i)
void * alloc_pages (Uint32 type_id, Uint32 *i, Uint32 *cnt, Uint32 min=1)
void release_pages (Uint32 type_id, Uint32 i, Uint32 cnt)
void handleAbort (int code, const char *msg) ATTRIBUTE_NORETURN

Public Attributes

class SimulatedBlockm_block

Detailed Description

Definition at line 67 of file Pool.hpp.

Member Function Documentation

void * Pool_context::alloc_page ( Uint32  type_id,
Uint32 *  i 
)

Alloc consekutive pages

Parameters
i: out : i value of first page
Returns
: pointer to first page (NULL if failed)

Will handle resource limit

Definition at line 24 of file Pool.cpp.

void* Pool_context::alloc_pages ( Uint32  type_id,
Uint32 *  i,
Uint32 *  cnt,
Uint32  min = 1 
)

Alloc consekutive pages

Parameters
cnt: in/out : no of requested pages, return no of allocated (undefined return NULL) out will never be > in
i: out : i value of first page
min: in : will never allocate less than min
Returns
: pointer to first page (NULL if failed)

Will handle resource limit

void * Pool_context::get_memroot ( )

Get mem root

Definition at line 37 of file Pool.cpp.

void Pool_context::handleAbort ( int  code,
const char *  msg 
)

Abort

Definition at line 43 of file Pool.cpp.

Here is the call graph for this function:

void Pool_context::release_page ( Uint32  type_id,
Uint32  i 
)

Release pages

Parameters
i: in : i value of first page
p: in : pointer to first page

Definition at line 31 of file Pool.cpp.

Here is the caller graph for this function:

void Pool_context::release_pages ( Uint32  type_id,
Uint32  i,
Uint32  cnt 
)

Release pages

Parameters
i: in : i value of first page
p: in : pointer to first page
cnt: in : no of pages to release

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