cpu affinity management for a single process More...

#include <CpuAffinitySet.h>

Collaboration diagram for CpuAffinitySet:

Public Member Functions

 CpuAffinitySet ()
 
void apply ()
 set CPU affinity for this process More...
 
void undo ()
 undo CPU affinity changes for this process More...
 
bool applied ()
 whether apply() was called and was not undone More...
 
void set (const cpu_set_t &aCpuSet)
 set CPU affinity mask More...
 

Private Attributes

cpu_set_t theCpuSet
 configured CPU affinity for this process More...
 
cpu_set_t theOrigCpuSet
 CPU affinity for this process before apply() More...
 

Detailed Description

Definition at line 15 of file CpuAffinitySet.h.

Constructor & Destructor Documentation

◆ CpuAffinitySet()

CpuAffinitySet::CpuAffinitySet ( )

Definition at line 20 of file CpuAffinitySet.cc.

References CPU_ZERO, theCpuSet, and theOrigCpuSet.

Member Function Documentation

◆ applied()

bool CpuAffinitySet::applied ( )

Definition at line 72 of file CpuAffinitySet.cc.

References CPU_COUNT, and theOrigCpuSet.

Referenced by apply(), and undo().

◆ apply()

void CpuAffinitySet::apply ( )

◆ set()

void CpuAffinitySet::set ( const cpu_set_t aCpuSet)

Definition at line 81 of file CpuAffinitySet.cc.

References theCpuSet.

Referenced by CpuAffinityMap::calculateSet().

◆ undo()

void CpuAffinitySet::undo ( )

Member Data Documentation

◆ theCpuSet

cpu_set_t CpuAffinitySet::theCpuSet
private

Definition at line 33 of file CpuAffinitySet.h.

Referenced by CpuAffinitySet(), apply(), and set().

◆ theOrigCpuSet

cpu_set_t CpuAffinitySet::theOrigCpuSet
private

Definition at line 34 of file CpuAffinitySet.h.

Referenced by CpuAffinitySet(), applied(), apply(), and undo().


The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors