20#ifndef _OPENTHREADS_AFFINITY_
21#define _OPENTHREADS_AFFINITY_
41 Affinity(
unsigned int cpuNumber,
unsigned int cpuCount) {
while(cpuCount>0) {
activeCPUs.insert(cpuNumber++); --cpuCount; } }
Simple container for specifying which CPU a thread should have affinity with. An empty Affinity....
Definition Affinity:34
void add(unsigned int cpuNmber)
Definition Affinity:49
Affinity(unsigned int cpuNumber)
Definition Affinity:39
Affinity()
Definition Affinity:37
Affinity & operator=(const Affinity &rhs)
Definition Affinity:45
ActiveCPUs activeCPUs
Definition Affinity:60
std::set< unsigned int > ActiveCPUs
Definition Affinity:57
Affinity(unsigned int cpuNumber, unsigned int cpuCount)
Definition Affinity:41
void remove(unsigned int cpuNmber)
Definition Affinity:52
Affinity(const Affinity &rhs)
Definition Affinity:43