OpenThreads
|
Simple container for specifying which CPU a thread should have affinity with. More...
#include <Affinity>
Public Types | |
typedef std::set< unsigned int > | ActiveCPUs |
Public Member Functions | |
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. |
Public Attributes | |
ActiveCPUs | activeCPUs |
Set of CPUs that a thread should have affinity to. |
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.
typedef std::set<unsigned int> OpenThreads::Affinity::ActiveCPUs |
|
inline |
Referenced by Affinity(), and operator=().
|
inline |
References activeCPUs.
|
inline |
References activeCPUs.
|
inline |
References activeCPUs, and Affinity().
|
inline |
add a specified cpu core from the list to have affinity to.
References activeCPUs.
|
inline |
return true if affinity has been provided for specific CPU cores.
References activeCPUs.
References activeCPUs, and Affinity().
|
inline |
remove a specified cpu core from the list to have affinity to.
References activeCPUs.
ActiveCPUs OpenThreads::Affinity::activeCPUs |
Set of CPUs that a thread should have affinity to.
Referenced by add(), Affinity(), Affinity(), Affinity(), operator bool(), operator=(), and remove().
![]() | Generated at Wed Jul 23 2025 00:00:00 for the OpenThreads by doxygen 1.14.0. |