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();
Current thread related tasks.
pthread_t ThreadId
Type alias for thread identifier.
#define ONIXS_B3_BOE_EXPORTED
Represents set of CPU indices.
size_t CpuIndex
Logical processors that a thread is allowed to run on (first logical CPU has index 0)...
std::set< CpuIndex > CpuIndexes