22#ifndef RESOURCEGROUPS_THREAD_RESOURCE_CONTROL_H_
23#define RESOURCEGROUPS_THREAD_RESOURCE_CONTROL_H_
Class that abstracts the resource control that can be applied to threads.
Definition: thread_resource_control.h:39
bool validate(const Type &resource_group_type) const
Validate the CPU ID Ranges and thread priority value associate with the thread resource control objec...
Definition: thread_resource_control.cc:33
bool apply_control()
Apply the thread resource controls to the thread on which this function is called.
Definition: thread_resource_control.cc:74
const std::vector< Range > & vcpu_vector() const
Get const pointer of vector of CPU ID range.
Definition: thread_resource_control.h:67
void set_priority(int priority)
Set priority associated with Thread resource control object.
Definition: thread_resource_control.h:59
void set_vcpu_vector(const std::vector< Range > &vcpu_vector)
Set the CPU ID range vector.
Definition: thread_resource_control.h:73
int priority() const
Get priority associated with Thread resource control object.
Definition: thread_resource_control.h:53
Thread_resource_control()
Default constructor.
Definition: thread_resource_control.h:45
int m_priority
Thread priority value.
Definition: thread_resource_control.h:117
std::vector< Range > m_vcpu_vector
Vector of CPU ID range.
Definition: thread_resource_control.h:112
Portable wrapper for gettid().
unsigned long long my_thread_os_id_t
Definition: my_thread_os_id.h:47
Definition: dd_resource_group.h:28
Type
Definition: resource_group_basic_types.h:32