NUMA++ 0.11.0
Loading...
Searching...
No Matches
CPU Affinity APIs

NUMA++ CPU affinity APIs. More...

Files

file  cpuaffinity.hpp
 Contains declarations for CpuAffinity.
 

Classes

class  numapp::CpuAffinity
 Create CPU affinity and apply to current thread. More...
 

Apply CPU Affinity to Current Thread

Applies specified policy to calling thread.

std::error_code numapp::thisThread::Apply (CpuAffinity const &affinity) noexcept
 Apply policy to calling thread.
 
std::error_code Apply (CpuAffinity const &affinity) noexcept
 Apply policy to calling thread.
 

Apply CPU Affinity to Specific Thread

Applies specified policy to calling thread.

std::error_code numapp::Apply (pid_t thread, CpuAffinity const &affinity) noexcept
 Apply policy to specified thread.
 
std::error_code Apply (pid_t thread, CpuAffinity const &affinity) noexcept
 Apply policy to specified thread.
 

Detailed Description

NUMA++ CPU affinity APIs.

Use header file #include <numapp/cpuaffinity.hpp>

See CPU Affinity API for an overview.

Function Documentation

◆ Apply() [1/4]

std::error_code Apply ( pid_t thread,
CpuAffinity const & affinity )
nodiscardnoexcept

Apply policy to specified thread.

Parameters
threadThread id.
affinityThe CPU affinity to apply.

Definition at line 22 of file cpuaffinity.cpp.

◆ Apply() [2/4]

std::error_code Apply ( CpuAffinity const & affinity)
related

Apply policy to calling thread.

Parameters
affinityThe CPU affinity to apply.

Definition at line 17 of file cpuaffinity.cpp.

◆ Apply() [3/4]

std::error_code Apply ( pid_t thread,
CpuAffinity const & affinity )
related

Apply policy to specified thread.

Parameters
threadThread id.
affinityThe CPU affinity to apply.

Definition at line 22 of file cpuaffinity.cpp.

◆ Apply() [4/4]

std::error_code numapp::thisThread::Apply ( CpuAffinity const & affinity)
nodiscardnoexcept

Apply policy to calling thread.

Parameters
affinityThe CPU affinity to apply.

Definition at line 17 of file cpuaffinity.cpp.