Simple container for specifying which CPU a thread should have affinity with.
More...
#include <Affinity>
|
| Affinity () |
|
| Affinity (unsigned int cpuNumber) |
|
| Affinity (unsigned int cpuNumber, unsigned int cpuCount) |
|
| Affinity (const Affinity &rhs) |
|
Affinity & | operator= (const Affinity &rhs) |
|
void | add (unsigned int cpuNmber) |
| add a specified cpu core from the list to have affinity to.
|
|
void | remove (unsigned int cpuNmber) |
| remove a specified cpu core from the list to have affinity to.
|
|
| operator bool () const |
| return true if affinity has been provided for specific CPU cores.
|
|
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.
◆ operator bool()
OpenThreads::Affinity::operator bool |
( |
| ) |
const |
|
inline |
return true if affinity has been provided for specific CPU cores.
◆ operator=()
◆ remove()
void OpenThreads::Affinity::remove |
( |
unsigned int | cpuNmber | ) |
|
|
inline |
remove a specified cpu core from the list to have affinity to.
◆ activeCPUs
Set of CPUs that a thread should have affinity to.
The documentation for this class was generated from the following file: