#include <cerrno>
Include dependency graph for cpu.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
struct | cpu_set_t |
Macros | |
#define | CPU_SETSIZE 0 |
#define | CPU_ZERO(set) (void)0 |
#define | CPU_SET(cpunum, cpuset) CpuSet(cpunum, cpuset) |
#define | CPU_CLR(cpu, set) (void)0 |
#define | CPU_ISSET(cpunum, cpuset) CpuIsSet(cpunum, cpuset) |
#define | CPU_COUNT(set) CpuCount(set) |
#define | CPU_AND(destset, srcset1, srcset2) CpuAnd((destset), (srcset1), (srcset2)) |
Functions | |
int | sched_setaffinity (int, size_t, cpu_set_t *) |
int | sched_getaffinity (int, size_t, cpu_set_t *) |
void | CpuSet (int, const cpu_set_t *) |
bool | CpuIsSet (int, const cpu_set_t *) |
int | CpuCount (const cpu_set_t *set) |
CPU_COUNT replacement. More... | |
void | CpuAnd (cpu_set_t *destset, const cpu_set_t *srcset1, const cpu_set_t *srcset2) |
CPU_AND replacement. More... | |
Macro Definition Documentation
◆ CPU_AND
#define CPU_AND | ( | destset, | |
srcset1, | |||
srcset2 | |||
) | CpuAnd((destset), (srcset1), (srcset2)) |
◆ CPU_CLR
◆ CPU_COUNT
◆ CPU_ISSET
◆ CPU_SET
◆ CPU_SETSIZE
◆ CPU_ZERO
Function Documentation
◆ CpuAnd()
◆ CpuCount()
Definition at line 56 of file cpu.h.
References CPU_ISSET, and CPU_SETSIZE.
◆ CpuIsSet()
◆ CpuSet()
◆ sched_getaffinity()
Definition at line 26 of file cpu.h.
Referenced by CpuAffinitySet::apply().
◆ sched_setaffinity()
Definition at line 25 of file cpu.h.
Referenced by CpuAffinitySet::apply(), and CpuAffinitySet::undo().