|
| 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< Cpus > | CpuRengList |
| |
|
|
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 () |
| |
◆ setCpuThread() [1/4]
| static bool ACQUA::ThreadPriority::setCpuThread |
( |
CpuNo | c | ) |
|
|
inlinestatic |
Set the thread CPU affinity.
- Parameters
-
◆ setCpuThread() [2/4]
| static bool ACQUA::ThreadPriority::setCpuThread |
( |
CpuNo | off, |
|
|
CpuCount | rng ) |
|
inlinestatic |
Set the self thread CPU affinity.
- Parameters
-
| rng | CPU start offset |
| rng | CPU count |
◆ setCpuThread() [3/4]
| static bool ACQUA::ThreadPriority::setCpuThread |
( |
ThreadID | pid, |
|
|
CpuNo | off, |
|
|
CpuCount | rng ) |
|
inlinestatic |
Set the thread CPU affinity.
- Parameters
-
| Thread | ID |
| rng | CPU start offset |
| rng | CPU count |
◆ setCpuThread() [4/4]
| static bool ACQUA::ThreadPriority::setCpuThread |
( |
ThreadID | , |
|
|
const CpuRengList & | ) |
|
static |
Set the thread CPU affinity.
- Parameters
-
| Thread | ID |
| rng | CPU range list |
◆ setPriority()
| static bool ACQUA::ThreadPriority::setPriority |
( |
ThreadID | , |
|
|
Priority | ) |
|
static |
The documentation for this class was generated from the following file: