4void* BindAlloc(std::size_t size,
int node, std::error_code& ec) {
8 void* ptr =
Allocate(size, policy, MemPolicyFlag::Strict, ec);
Class representing a memory policy that can be modified and used to apply to the current thread or a ...
static MemPolicy MakeBindNode(int node)
Creates a strict policy (using MPOL_BIND) to allocate all memory to the specified node.
std::error_code MemLock(void const *addr, std::size_t len, LockFlag flag) noexcept
Lock memory pages in the specified address range.
void * Allocate(std::size_t size, MemPolicy const &policy, std::error_code &ec) noexcept
See group for details.
@ PreFault
Locks pages whether they are resident or not.
Contains memory function declarations.
Contains declarations for numapp::MemPolicy.