]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/CpuAffinitySet.h
ebe0d149d290893d66760def37c4bdc702d624c9
2 * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 #ifndef SQUID_CPU_AFFINITY_SET_H
10 #define SQUID_CPU_AFFINITY_SET_H
12 #include "compat/cpu.h"
14 /// cpu affinity management for a single process
20 /// set CPU affinity for this process
23 /// undo CPU affinity changes for this process
26 /// whether apply() was called and was not undone
29 /// set CPU affinity mask
30 void set(const cpu_set_t
&aCpuSet
);
33 cpu_set_t theCpuSet
; ///< configured CPU affinity for this process
34 cpu_set_t theOrigCpuSet
; ///< CPU affinity for this process before apply()
37 #endif // SQUID_CPU_AFFINITY_SET_H