Struct Ase::FastMemory::HugePage
ClassList > Ase > FastMemory > HugePage
Interface to the OS huge page allocator.
#include <memory.hh>
Inherited by the following classes: Ase::FastMemory::LinuxHugePage
Public Types
Type | Name |
---|---|
typedef std::shared_ptr< HugePage > | HugePageP |
Public Functions
Type | Name |
---|---|
size_t | alignment () const Alignment of the memory area. |
char * | mem () const Allocated memroy area. |
size_t | size () const Size in bytes of the memroy area. |
Public Static Functions
Type | Name |
---|---|
HugePageP | allocate (size_t minimum_alignment, size_t bytelength) Try to allocate a HugePage __ >= bytelength withminimum_alignment , usual sizes are 2MB. |
Protected Attributes
Type | Name |
---|---|
const size_t | size_ |
void *const | start_ |
Protected Functions
Type | Name |
---|---|
HugePage (void * m, size_t s) |
|
virtual | ~HugePage () |
Public Types Documentation
typedef HugePageP
using Ase::FastMemory::HugePage::HugePageP = std::shared_ptr<HugePage>;
Public Functions Documentation
function alignment
inline size_t Ase::FastMemory::HugePage::alignment () const
function mem
inline char * Ase::FastMemory::HugePage::mem () const
function size
inline size_t Ase::FastMemory::HugePage::size () const
Public Static Functions Documentation
function allocate
static HugePageP Ase::FastMemory::HugePage::allocate (
size_t minimum_alignment,
size_t bytelength
)
Protected Attributes Documentation
variable size_
const size_t Ase::FastMemory::HugePage::size_;
variable start_
void* const Ase::FastMemory::HugePage::start_;
Protected Functions Documentation
function HugePage
explicit Ase::FastMemory::HugePage::HugePage (
void * m,
size_t s
)
function ~HugePage
inline virtual Ase::FastMemory::HugePage::~HugePage ()
The documentation for this class was generated from the following file /__w/anklang/anklang/ase/memory.hh