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

Contains declarations for CpuAffinity. More...

#include <bitset>
#include <cstring>
#include <iosfwd>
#include <optional>
#include <system_error>
#include "cpumask.hpp"

Go to the source code of this file.

Classes

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

Namespaces

namespace  numapp
 

Functions

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.
 
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.
 

Detailed Description

Contains declarations for CpuAffinity.

Definition in file cpuaffinity.hpp.