HosrDiretta
Loading...
Searching...
No Matches
ACQUA::ThreadPriority Class Reference

Classes

struct  Cpus
 

Public Types

enum class  Priority { CRITICAL , HIGH , NORMAL , IDLE }
 Thread Priority Level.
 
typedef uint64_t ThreadID
 
typedef uint16_t CpuNo
 
typedef uint16_t CpuCount
 
typedef std::list< CpusCpuRengList
 

Static Public Member Functions

static ThreadID getSelfThreadID ()
 
static bool CpuThreadSupport ()
 
static bool setPriority (ThreadID, Priority)
 Thread Priority Change.
 
static bool setPriority (Priority p)
 Thread Priority Change Self.
 
static void idle ()
 Release the thread CPU.
 
static CpuCount getCpuCore ()
 Get System CPU cores.
 
static bool setCpuThread (ThreadID, const CpuRengList &)
 Set the thread CPU affinity.
 
static bool setCpuThread (ThreadID pid, CpuNo off, CpuCount rng)
 Set the thread CPU affinity.
 
static bool setCpuThread ()
 reset self thread CPU affinity
 
static bool setCpuThread (CpuNo off, CpuCount rng)
 Set the self thread CPU affinity.
 
static bool setCpuThread (CpuNo c)
 Set the thread CPU affinity.
 
static std::string debug ()
 

Member Function Documentation

◆ setCpuThread() [1/4]

static bool ACQUA::ThreadPriority::setCpuThread ( CpuNo c)
inlinestatic

Set the thread CPU affinity.

Parameters
CPUcore no

◆ setCpuThread() [2/4]

static bool ACQUA::ThreadPriority::setCpuThread ( CpuNo off,
CpuCount rng )
inlinestatic

Set the self thread CPU affinity.

Parameters
rngCPU start offset
rngCPU count

◆ setCpuThread() [3/4]

static bool ACQUA::ThreadPriority::setCpuThread ( ThreadID pid,
CpuNo off,
CpuCount rng )
inlinestatic

Set the thread CPU affinity.

Parameters
ThreadID
rngCPU start offset
rngCPU count

◆ setCpuThread() [4/4]

static bool ACQUA::ThreadPriority::setCpuThread ( ThreadID ,
const CpuRengList &  )
static

Set the thread CPU affinity.

Parameters
ThreadID
rngCPU range list

◆ setPriority()

static bool ACQUA::ThreadPriority::setPriority ( ThreadID ,
Priority  )
static

Thread Priority Change.

Parameters
ThreadID
PriorityLevel

The documentation for this class was generated from the following file: