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