Simple container for specifying which CPU a thread should have affinity with.
More...
Simple container for specifying which CPU a thread should have affinity with.
An empty Affinity.activeCPUs/default constructed Affinity signifies that a thread should not have any specific affinity and be able to run on all available CPUs.
◆ ActiveCPUs
◆ Affinity() [1/4]
OpenThreads::Affinity::Affinity |
( |
| ) |
|
|
inline |
◆ Affinity() [2/4]
OpenThreads::Affinity::Affinity |
( |
unsigned int |
cpuNumber | ) |
|
|
inline |
◆ Affinity() [3/4]
OpenThreads::Affinity::Affinity |
( |
unsigned int |
cpuNumber, |
|
|
unsigned int |
cpuCount |
|
) |
| |
|
inline |
◆ Affinity() [4/4]
OpenThreads::Affinity::Affinity |
( |
const Affinity & |
rhs | ) |
|
|
inline |
◆ add()
void OpenThreads::Affinity::add |
( |
unsigned int |
cpuNmber | ) |
|
|
inline |
add a specified cpu core from the list to have affinity to.
References activeCPUs.
◆ operator bool()
OpenThreads::Affinity::operator bool |
( |
| ) |
const |
|
inline |
return true if affinity has been provided for specific CPU cores.
References activeCPUs.
◆ operator=()
◆ remove()
void OpenThreads::Affinity::remove |
( |
unsigned int |
cpuNmber | ) |
|
|
inline |
remove a specified cpu core from the list to have affinity to.
References activeCPUs.
◆ activeCPUs
The documentation for this class was generated from the following file: