NUMA++ 0.11.0
Loading...
Searching...
No Matches
numapolicies.hpp File Reference

Contains declarations for NumaPolicies. More...

#include <iosfwd>
#include <numapp/cpuaffinity.hpp>
#include <numapp/mempolicy.hpp>
#include <numapp/scheduler.hpp>

Go to the source code of this file.

Classes

class  numapp::NumaPolicies
 Combines the the available NUMA policy types in one object. More...
 

Namespaces

namespace  numapp
 

Functions

std::ostream & numapp::operator<< (std::ostream &os, NumaPolicies const &policies)
 Formats policies and inserts it to os.
 
Apply Policies to Current Thread

Applies specified policies to calling thread.

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

Detailed Description

Contains declarations for NumaPolicies.

Definition in file numapolicies.hpp.

Function Documentation

◆ Apply()

std::error_code numapp::thisThread::Apply ( NumaPolicies const & policies)
noexcept

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.