ug4
FreqAdaptValues Class Reference

#include <freq_adapt.h>

Classes

struct  FreqAdaptPoint
 

Static Public Member Functions

static void adjust_freq (unsigned long freq)
 
static unsigned long freq (const char *file, const int line)
 
static void set_freqs (std::string csvFile)
 

Static Protected Member Functions

static void * freqAdaptWorker (void *This)
 

Static Protected Attributes

static pthread_cond_t freqAdapt_condVar = pthread_cond_t()
 
static pthread_mutex_t freqAdapt_mutex = pthread_mutex_t()
 
static pthread_t freqAdaptWorkerThread = pthread_t()
 
static pthread_attr_t freqAdaptWorkerThreadAttr = pthread_attr_t()
 
static unsigned long newFreq = 0
 
static cpu_set_t processor_mask = cpu_set_t()
 

Private Member Functions

unsigned long find_freq (const char *file, const int line)
 
 FreqAdaptValues ()
 
 FreqAdaptValues (const FreqAdaptValues &)
 
FreqAdaptValuesoperator= (const FreqAdaptValues &)
 
 ~FreqAdaptValues ()
 

Static Private Member Functions

static FreqAdaptValuesinst ()
 

Static Private Attributes

static std::vector< FreqAdaptPointm_pos
 

Friends

class AutoFreqAdaptNode
 

Constructor & Destructor Documentation

◆ FreqAdaptValues() [1/2]

FreqAdaptValues::FreqAdaptValues ( )
inlineprivate

◆ FreqAdaptValues() [2/2]

FreqAdaptValues::FreqAdaptValues ( const FreqAdaptValues )
private

◆ ~FreqAdaptValues()

FreqAdaptValues::~FreqAdaptValues ( )
inlineprivate

Member Function Documentation

◆ adjust_freq()

void FreqAdaptValues::adjust_freq ( unsigned long  freq)
static

◆ find_freq()

unsigned long FreqAdaptValues::find_freq ( const char *  file,
const int  line 
)
private

References m_pos.

Referenced by freq().

◆ freq()

static unsigned long FreqAdaptValues::freq ( const char *  file,
const int  line 
)
inlinestatic

References find_freq(), and inst().

Referenced by adjust_freq(), freqAdaptWorker(), and set_freqs().

◆ freqAdaptWorker()

void * FreqAdaptValues::freqAdaptWorker ( void *  This)
staticprotected

◆ inst()

FreqAdaptValues & FreqAdaptValues::inst ( )
staticprivate

Referenced by freq().

◆ operator=()

FreqAdaptValues& FreqAdaptValues::operator= ( const FreqAdaptValues )
private

◆ set_freqs()

void FreqAdaptValues::set_freqs ( std::string  csvFile)
static

Friends And Related Function Documentation

◆ AutoFreqAdaptNode

friend class AutoFreqAdaptNode
friend

Member Data Documentation

◆ freqAdapt_condVar

pthread_cond_t FreqAdaptValues::freqAdapt_condVar = pthread_cond_t()
staticprotected

◆ freqAdapt_mutex

pthread_mutex_t FreqAdaptValues::freqAdapt_mutex = pthread_mutex_t()
staticprotected

◆ freqAdaptWorkerThread

pthread_t FreqAdaptValues::freqAdaptWorkerThread = pthread_t()
staticprotected

Referenced by set_freqs().

◆ freqAdaptWorkerThreadAttr

pthread_attr_t FreqAdaptValues::freqAdaptWorkerThreadAttr = pthread_attr_t()
staticprotected

Referenced by set_freqs().

◆ m_pos

std::vector< FreqAdaptValues::FreqAdaptPoint > FreqAdaptValues::m_pos
staticprivate
Initial value:
=
std::vector<FreqAdaptValues::FreqAdaptPoint>()

Referenced by find_freq(), and set_freqs().

◆ newFreq

unsigned long FreqAdaptValues::newFreq = 0
staticprotected

◆ processor_mask

cpu_set_t FreqAdaptValues::processor_mask = cpu_set_t()
staticprotected

Referenced by set_freqs().


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