#include <pool_allocator.h>
Inheritance diagram for __gnu_cxx::__pool_alloc_base:
Protected Types | |
_S_align = 8 | |
_S_max_bytes = 128 | |
_S_free_list_size = (size_t)_S_max_bytes / (size_t)_S_align | |
enum | { _S_align = 8 } |
enum | { _S_max_bytes = 128 } |
enum | { _S_free_list_size = (size_t)_S_max_bytes / (size_t)_S_align } |
Protected Member Functions | |
size_t | _M_round_up (size_t __bytes) |
_Obj *volatile * | _M_get_free_list (size_t __bytes) |
mutex_type & | _M_get_mutex () |
void * | _M_refill (size_t __n) |
char * | _M_allocate_chunk (size_t __n, int &__nobjs) |
Static Protected Attributes | |
static _Obj *volatile | _S_free_list [_S_free_list_size] |
static char * | _S_start_free |
static char * | _S_end_free |
static size_t | _S_heap_size |
Classes | |
union | _Obj |
Definition at line 77 of file pool_allocator.h.
anonymous enum [protected] |
anonymous enum [protected] |
anonymous enum [protected] |
char* __gnu_cxx::__pool_alloc_base::_M_allocate_chunk | ( | size_t | __n, | |
int & | __nobjs | |||
) | [protected] |
_Obj* volatile* __gnu_cxx::__pool_alloc_base::_M_get_free_list | ( | size_t | __bytes | ) | [protected] |
mutex_type& __gnu_cxx::__pool_alloc_base::_M_get_mutex | ( | ) | [protected] |
void* __gnu_cxx::__pool_alloc_base::_M_refill | ( | size_t | __n | ) | [protected] |
Referenced by __gnu_cxx::__pool_alloc< _Tp >::allocate().
size_t __gnu_cxx::__pool_alloc_base::_M_round_up | ( | size_t | __bytes | ) | [inline, protected] |
Definition at line 99 of file pool_allocator.h.
References _S_align.
Referenced by __gnu_cxx::__pool_alloc< _Tp >::allocate().
char* __gnu_cxx::__pool_alloc_base::_S_end_free [static, protected] |
Definition at line 95 of file pool_allocator.h.
_Obj* volatile __gnu_cxx::__pool_alloc_base::_S_free_list[_S_free_list_size] [static, protected] |
Definition at line 91 of file pool_allocator.h.
size_t __gnu_cxx::__pool_alloc_base::_S_heap_size [static, protected] |
Definition at line 96 of file pool_allocator.h.
char* __gnu_cxx::__pool_alloc_base::_S_start_free [static, protected] |
Definition at line 94 of file pool_allocator.h.