OnixS C++ ICE Binary Order Entry Handler 1.0.0
API Documentation
Loading...
Searching...
No Matches
ThisThread Class Reference

Static Public Member Functions

static void sleep (size_t milliseconds)
static void spinWait (size_t microseconds)
static void affinity (const CpuIndexes &cpuIndexes)
static void affinity (CpuIndex cpuIndex)
static void priority (int priority)
static void policy (int policy)
static ThreadId id ()
static unsigned int processorNumber ()

Detailed Description

Definition at line 63 of file Thread.h.

Member Function Documentation

◆ affinity() [1/2]

void affinity ( const CpuIndexes & cpuIndexes)
static

Sets the processor affinity mask for the current thread. The thread is rescheduled after this call.

◆ affinity() [2/2]

void affinity ( CpuIndex cpuIndex)
static

Sets the processor affinity mask for the current thread. The thread is rescheduled after this call.

◆ id()

ThreadId id ( )
static
Returns
the platform identifier for the current thread.

◆ policy()

void policy ( int policy)
static

Sets the scheduling policy for the current thread.

Note
This method also sets the priority to the minimal value for the new policy, therefore, the priority should be set to a necessary value afterwards.

◆ priority()

void priority ( int priority)
static

Sets the priority for the current thread.

◆ processorNumber()

unsigned int processorNumber ( )
static
Returns
the processor number the current thread is running on during the call to this method.

◆ sleep()

void sleep ( size_t milliseconds)
static

Suspends the execution of the current thread for the given amount of time.

◆ spinWait()

void spinWait ( size_t microseconds)
static

Executes a single instruction during the given number of microseconds.