powerd++  0.4.4
Public Member Functions | Private Attributes | List of all members
anonymous_namespace{powerd++.cpp}::FreqGuard Class Referencefinal

A core frequency guard. More...

Collaboration diagram for anonymous_namespace{powerd++.cpp}::FreqGuard:
[legend]

Public Member Functions

 FreqGuard ()
 Read and write all core frequencies, may throw.
 
 ~FreqGuard ()
 Restore all core frequencies.
 

Private Attributes

std::unique_ptr< mhz_t[]> freqs
 The list of initial frequencies.
 

Detailed Description

A core frequency guard.

This uses the RAII pattern to achieve two things:


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