64class ONIXS_CBOE_CFE_BOE_API ThisThread
69 static void sleep(
unsigned int milliseconds);
72 static void spinWait(
unsigned int microseconds);
94 ThisThread(
const ThisThread &);
95 ThisThread &operator=(
const ThisThread &);
static void priority(int priority)
Sets the priority for the current thread.
static void affinity(const CpuIndexes &cpuIndexes)
Sets the processor affinity mask for the current thread.
static void affinity(CpuIndex cpuIndex)
Sets the processor affinity mask for the current thread.
static void spinWait(unsigned int microseconds)
Executes a single instruction during the given number of microseconds.
static void policy(int policy)
static void sleep(unsigned int milliseconds)
static unsigned int processorNumber()
CpuIndexes & cpuIndexes()
Collection of CPU indices.
~ThreadAffinity()
Destructs the instance.
const CpuIndexes & cpuIndexes() const
Read-only access to index collection.
std::string toString()
Serializes thread affinity to the string presentation.
ThreadAffinity(const std::string &str)
size_t CpuIndex
Logical processors that a thread is allowed to run on (first logical CPU has index 0).
std::set< CpuIndex > CpuIndexes