29 namespace ConflatedTCP {
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(
int microseconds);
76 static void affinity(
const CpuIndexes & cpuIndexes);
79 static void affinity(
const CpuIndex cpuIndex);
82 static void priority(
int priority);
88 static void policy(
int policy);
94 static unsigned int processorNumber();
size_t CpuIndex
Logical processors that a thread is allowed to run on (first logical CPU has index 0)...
#define ONIXS_CONFLATEDTCP_EXPORTED
pthread_t ThreadId
Type alias for thread identifier.
Represents set of CPU indices.
std::set< CpuIndex > CpuIndexes
Current thread related tasks.