NUMA++ 0.11.0
Loading...
Searching...
No Matches
numapp::NumaPolicies Class Reference

Combines the the available NUMA policy types in one object. More...

#include <numapolicies.hpp>

Public Member Functions

void SetCpuAffinity (std::optional< CpuAffinity > affinity) noexcept
 Set CPU affinity.
 
std::optional< CpuAffinityGetCpuAffinity () const noexcept
 Get CPU affinity.
 
void SwapCpuAffinity (std::optional< CpuAffinity > &affinity) noexcept
 Swap CPU affinity.
 
void SetScheduler (std::optional< Scheduler > scheduler) noexcept
 Set scheduler.
 
std::optional< SchedulerGetScheduler () const noexcept
 Get scheduler.
 
void SwapScheduler (std::optional< Scheduler > &scheduler) noexcept
 Swap scheduler.
 
void SetMemPolicy (std::optional< MemPolicy > policy) noexcept
 Set memory policy.
 
std::optional< MemPolicyGetMemPolicy () const noexcept
 Get memory policy.
 
void SwapMemPolicy (std::optional< MemPolicy > &mempol) noexcept
 Swap memory policy.
 

Related Symbols

(Note that these are not member symbols.)

Apply Policies to Current Thread

Applies specified policies to calling thread.

std::error_code Apply (NumaPolicies const &policies) noexcept
 Apply the set policies to current thread.
 

Detailed Description

Combines the the available NUMA policy types in one object.

Definition at line 49 of file numapolicies.hpp.

Friends And Related Symbol Documentation

◆ Apply()

std::error_code Apply ( NumaPolicies const & policies)
related

Apply the set policies to current thread.

If any failure occurs the function will stop applying policies and return error. This means the policies can be partially applied.

Parameters
policiesThe set of policies to apply.
Returns
system error code if policies fails to apply.

Definition at line 14 of file numapolicies.cpp.


The documentation for this class was generated from the following file: