23#ifndef RESOURCEGROUPS_THREAD_RESOURCE_CONTROL_H_
24#define RESOURCEGROUPS_THREAD_RESOURCE_CONTROL_H_
Class that abstracts the resource control that can be applied to threads.
Definition: thread_resource_control.h:40
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:34
bool apply_control()
Apply the thread resource controls to the thread on which this function is called.
Definition: thread_resource_control.cc:75
const std::vector< Range > & vcpu_vector() const
Get const pointer of vector of CPU ID range.
Definition: thread_resource_control.h:68
void set_priority(int priority)
Set priority associated with Thread resource control object.
Definition: thread_resource_control.h:60
void set_vcpu_vector(const std::vector< Range > &vcpu_vector)
Set the CPU ID range vector.
Definition: thread_resource_control.h:74
int priority() const
Get priority associated with Thread resource control object.
Definition: thread_resource_control.h:54
Thread_resource_control()
Default constructor.
Definition: thread_resource_control.h:46
int m_priority
Thread priority value.
Definition: thread_resource_control.h:118
std::vector< Range > m_vcpu_vector
Vector of CPU ID range.
Definition: thread_resource_control.h:113
Portable wrapper for gettid().
unsigned long long my_thread_os_id_t
Definition: my_thread_os_id.h:48
Definition: dd_resource_group.h:29
Type
Definition: resource_group_basic_types.h:33