According to CPU_SET(3) and, apparently, on some systems (e.g.,
OpenSuSE 10.3) CPU_COUNT macro expects a non-const argument. The
patch fixes build error on these systems.
}
bool
-CpuAffinitySet::applied() const
+CpuAffinitySet::applied()
{
+ // NOTE: cannot be const.
+ // According to CPU_SET(3) and, apparently, on some systems (e.g.,
+ // OpenSuSE 10.3) CPU_COUNT macro expects a non-const argument.
return (CPU_COUNT(&theOrigCpuSet) > 0);
}
void undo();
/// whether apply() was called and was not undone
- bool applied() const;
+ bool applied();
/// set CPU affinity mask
void set(const cpu_set_t &aCpuSet);