Go to the documentation of this file.
   36                "process PID " << getpid() << 
", ignoring CPU affinity for " 
   37                "this process: " << 
xstrerr(xerrno));
 
   40         memcpy(&cpuSet, &
theCpuSet, 
sizeof(cpuSet));
 
   44                    "PID " << getpid() << 
", may be caused by an invalid core in " 
   45                    "'cpu_affinity_map' or by external affinity restrictions");
 
   49                    "process PID " << getpid() << 
": " << 
xstrerr(xerrno));
 
   64                    "affinity for process PID " << getpid() << 
": " <<
 
  
const char * xstrerr(int error)
int sched_getaffinity(int, size_t, cpu_set_t *)
cpu_set_t theOrigCpuSet
CPU affinity for this process before apply()
void set(const cpu_set_t &aCpuSet)
set CPU affinity mask
#define CPU_AND(destset, srcset1, srcset2)
int sched_setaffinity(int, size_t, cpu_set_t *)
bool applied()
whether apply() was called and was not undone
cpu_set_t theCpuSet
configured CPU affinity for this process
void undo()
undo CPU affinity changes for this process
void apply()
set CPU affinity for this process
#define debugs(SECTION, LEVEL, CONTENT)