4void* BindAlloc(std::size_t size,
int node, std::error_code& ec) {
7 MemPolicy policy = MemPolicy::MakeBindNode(node);
8 void* ptr =
Allocate(size, policy, MemPolicyFlag::Strict, ec);
12 ec =
MemLock(ptr, size, LockFlag::PreFault);
Class representing a memory policy that can be modified and used to apply to the current thread or a ...
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.
Contains memory function declarations.
Contains declarations for numapp::MemPolicy.