stores cpu_affinity_map configuration More...

#include <CpuAffinityMap.h>

Collaboration diagram for CpuAffinityMap:

Public Member Functions

bool add (const std::vector< int > &aProcesses, const std::vector< int > &aCores)
 append cpu_affinity_map option More...
 
CpuAffinitySetcalculateSet (const int targetProcess) const
 calculate CPU set for this process More...
 
const std::vector< int > & processes () const
 returns list of process numbers More...
 
const std::vector< int > & cores () const
 returns list of cores More...
 

Private Attributes

std::vector< inttheProcesses
 list of process numbers More...
 
std::vector< inttheCores
 list of cores More...
 

Detailed Description

Definition at line 17 of file CpuAffinityMap.h.

Member Function Documentation

bool CpuAffinityMap::add ( const std::vector< int > &  aProcesses,
const std::vector< int > &  aCores 
)

Definition at line 18 of file CpuAffinityMap.cc.

References i, theCores, and theProcesses.

CpuAffinitySet * CpuAffinityMap::calculateSet ( const int  targetProcess) const

Definition at line 36 of file CpuAffinityMap.cc.

References CPU_SET, CPU_ZERO, DBG_CRITICAL, debugs, i, Must, NULL, CpuAffinitySet::set(), theCores, and theProcesses.

Referenced by CpuAffinityInit().

const std::vector<int>& CpuAffinityMap::cores ( ) const
inline

Definition at line 30 of file CpuAffinityMap.h.

References theCores.

Referenced by dump_CpuAffinityMap().

const std::vector<int>& CpuAffinityMap::processes ( ) const
inline

Definition at line 27 of file CpuAffinityMap.h.

References theProcesses.

Referenced by CpuAffinityCheck(), and dump_CpuAffinityMap().

Member Data Documentation

std::vector<int> CpuAffinityMap::theCores
private

Definition at line 34 of file CpuAffinityMap.h.

Referenced by add(), calculateSet(), and cores().

std::vector<int> CpuAffinityMap::theProcesses
private

Definition at line 33 of file CpuAffinityMap.h.

Referenced by add(), calculateSet(), and processes().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors