49 const CpuIndexes & cpuIndexes()
const;
52 CpuIndexes & cpuIndexes();
55 std::string toString();
61 CpuIndexes * indexes_;
70 static void sleep(
unsigned int milliseconds);
73 static void spinWait(
unsigned int microseconds);
76 static void affinity(
const CpuIndexes & cpuIndexes);
79 static void affinity(CpuIndex cpuIndex);
82 static void priority(
int priority);
88 static void policy(
int policy);
94 static unsigned int processorNumber();
Represents set of CPU indices.
Current thread related tasks.
pthread_t ThreadId
Type alias for thread identifier.
#define ONIXS_ILINK3_EXPORTED
size_t CpuIndex
Logical processors that a thread is allowed to run on (first logical CPU has index 0)...
std::set< CpuIndex > CpuIndexes