|
NUMA++ 0.11.0
|
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< CpuAffinity > | GetCpuAffinity () 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< Scheduler > | GetScheduler () 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< MemPolicy > | GetMemPolicy () 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. | |
Combines the the available NUMA policy types in one object.
Definition at line 49 of file numapolicies.hpp.
|
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.
| policies | The set of policies to apply. |
Definition at line 14 of file numapolicies.cpp.