|
NUMA++ 0.11.0
|
Polymorphic memory resource allocating full system pages with specified NUMA policy. More...
#include <numapp/memory.hpp>
Public Member Functions | |
| PageResource (MemPolicy policy, MemPolicyFlag flags=MemPolicyFlag::None) | |
| Create PageResource with specified memory policy and flags. | |
| virtual | ~PageResource ()=default |
| Destroy PageResource. | |
| PageResource & | operator= (PageResource const &)=delete |
| Page resource is not copy assignable. | |
| auto | GetPolicy () const noexcept -> MemPolicy const & |
| Get memory policy in use. | |
| auto | GetFlags () const noexcept -> MemPolicyFlag |
| Get flags in use. | |
Polymorphic memory resource allocating full system pages with specified NUMA policy.
Memory is page-aligned and allocated size is rounded up to nearest full page.
Allocations are performed using numapp::Allocate() and deallocations use numapp::Free(), see numapp_alloc for details.
Definition at line 359 of file memory.hpp.
| numapp::PageResource::PageResource | ( | MemPolicy | policy, |
| MemPolicyFlag | flags = MemPolicyFlag::None ) |
Create PageResource with specified memory policy and flags.
| policy | Memory policy to use when allocating. |
| flags | Memory policy flags to use when allocating. |
Definition at line 223 of file memory.cpp.