NUMA++ 0.12.0
Loading...
Searching...
No Matches
numapolicies.cpp File Reference

Definition of numapp::NumaPolicies. More...

#include <numapp/numapolicies.hpp>
#include <ostream>

Go to the source code of this file.

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

Definition of numapp::NumaPolicies.

SPDX-License-Identifier: LGPL-3.0-only

Definition in file numapolicies.cpp.

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 16 of file numapolicies.cpp.

◆ operator<<()

std::ostream & numapp::operator<< ( std::ostream & os,
NumaPolicies const & policies )

Formats policies and inserts it to os.

Parameters
osoutput stream to insert into.
policiespolicy to format.
Returns
os

Definition at line 38 of file numapolicies.cpp.