]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/CpuAffinitySet.h
4 #ifndef SQUID_CPU_AFFINITY_SET_H
5 #define SQUID_CPU_AFFINITY_SET_H
7 #include "compat/cpu.h"
9 /// cpu affinity management for a single process
15 /// set CPU affinity for this process
18 /// undo CPU affinity changes for this process
21 /// whether apply() was called and was not undone
24 /// set CPU affinity mask
25 void set(const cpu_set_t
&aCpuSet
);
28 cpu_set_t theCpuSet
; ///< configured CPU affinity for this process
29 cpu_set_t theOrigCpuSet
; ///< CPU affinity for this process before apply()
32 #endif // SQUID_CPU_AFFINITY_SET_H