MySQL 9.1.0
Source Code Documentation
|
Typedefs | |
using | cpu_id_t = uint32_t |
Functions | |
bool | is_platform_supported () |
Check if platform supports binding CPUS to thread. More... | |
bool | bind_to_cpu (cpu_id_t cpu_id) |
Bind current thread to run on CPU cpu_id. More... | |
bool | bind_to_cpu (cpu_id_t cpu_id, my_thread_os_id_t thread_id) |
Bind thread specified by thread_id to run on CPU cpu_id. More... | |
bool | bind_to_cpus (const std::vector< cpu_id_t > &cpu_ids) |
Bind current thread to run on the list of CPUS specified in cpu_ids. More... | |
bool | bind_to_cpus (const std::vector< cpu_id_t > &cpu_ids, my_thread_os_id_t thread_id) |
Bind thread specified by thread_id to run on list of CPUs specified by cpu_ids. More... | |
bool | unbind_thread () |
Unbind current thread to run on all CPUs. More... | |
bool | unbind_thread (my_thread_os_id_t thread_id) |
Unbind thread specified by thread_id to run on all CPUs. More... | |
int | thread_priority (my_thread_os_id_t thread_id) |
Get priority of thread specified by thread_id. More... | |
bool | set_thread_priority (int priority) |
Set priority of current thread. More... | |
bool | set_thread_priority (int priority, my_thread_os_id_t thread_id) |
Set priority of thread specified by thread_id. More... | |
uint32_t | num_vcpus_using_affinity () |
Find number of VCPUs as seen by the current process based on the affinity between each process and VCPU. More... | |
uint32_t | num_vcpus_using_config () |
Get the number of VCPUS based on system configuration. More... | |
uint32_t | num_vcpus () |
Get the number of VCPU. More... | |
bool | can_thread_priority_be_set () |
Check if thread priority setting is allowed on the platform or not. More... | |
bool | is_valid_thread_priority (int priority) |
Check if thread priority value is valid. More... | |
int | min_thread_priority_value () |
Get the minimum priority value. More... | |
int | max_thread_priority_value () |
Get the maximum priority value. More... | |
int | thread_priority () |
static int | map_to_win_priority (int priority) |
using resourcegroups::platform::cpu_id_t = typedef uint32_t |
bool resourcegroups::platform::bind_to_cpu | ( | cpu_id_t | cpu_id | ) |
Bind current thread to run on CPU cpu_id.
cpu_id | ID of the CPU. |
bool resourcegroups::platform::bind_to_cpu | ( | cpu_id_t | cpu_id, |
my_thread_os_id_t | thread_id | ||
) |
Bind thread specified by thread_id to run on CPU cpu_id.
cpu_id | ID of CPU. |
thread_id | OS ID of the thread. |
bool resourcegroups::platform::bind_to_cpus | ( | const std::vector< cpu_id_t > & | cpu_ids | ) |
Bind current thread to run on the list of CPUS specified in cpu_ids.
cpu_ids | List of CPU IDs to bind current thread. |
bool resourcegroups::platform::bind_to_cpus | ( | const std::vector< cpu_id_t > & | cpu_ids, |
my_thread_os_id_t | thread_id | ||
) |
Bind thread specified by thread_id to run on list of CPUs specified by cpu_ids.
cpu_ids | List of CPU IDs to bind the thread. |
thread_id | OS ID of thread. |
bool resourcegroups::platform::can_thread_priority_be_set | ( | ) |
Check if thread priority setting is allowed on the platform or not.
bool resourcegroups::platform::is_platform_supported | ( | ) |
Check if platform supports binding CPUS to thread.
bool resourcegroups::platform::is_valid_thread_priority | ( | int | priority | ) |
Check if thread priority value is valid.
|
inlinestatic |
int resourcegroups::platform::max_thread_priority_value | ( | ) |
Get the maximum priority value.
int resourcegroups::platform::min_thread_priority_value | ( | ) |
Get the minimum priority value.
uint32_t resourcegroups::platform::num_vcpus | ( | ) |
Get the number of VCPU.
uint32_t resourcegroups::platform::num_vcpus_using_affinity | ( | ) |
Find number of VCPUs as seen by the current process based on the affinity between each process and VCPU.
uint32_t resourcegroups::platform::num_vcpus_using_config | ( | ) |
Get the number of VCPUS based on system configuration.
bool resourcegroups::platform::set_thread_priority | ( | int | priority | ) |
Set priority of current thread.
priority | Priority to set to. |
bool resourcegroups::platform::set_thread_priority | ( | int | priority, |
my_thread_os_id_t | thread_id | ||
) |
Set priority of thread specified by thread_id.
priority | Priority to set to. |
thread_id | OS ID of the thread. |
int resourcegroups::platform::thread_priority | ( | ) |
int resourcegroups::platform::thread_priority | ( | my_thread_os_id_t | thread_id | ) |
Get priority of thread specified by thread_id.
thread_id | OS ID of the thread. |
bool resourcegroups::platform::unbind_thread | ( | ) |
Unbind current thread to run on all CPUs.
bool resourcegroups::platform::unbind_thread | ( | my_thread_os_id_t | thread_id | ) |
Unbind thread specified by thread_id to run on all CPUs.