|
Ersa Wearable Platform
Embedded smartwatch firmware and application framework
|
#include <power_management.h>

Public Member Functions | |
| PerformanceScope (IPowerManagement &power, PerformanceProfile profile, const char *reason) | |
| Acquire a workload profile and release it when this scope ends. | |
| ~PerformanceScope () | |
| Release the performance profile if it was successfully acquired. | |
| PerformanceScope (const PerformanceScope &)=delete | |
| PerformanceScope & | operator= (const PerformanceScope &)=delete |
Private Attributes | |
| IPowerManagement * | power_ |
| PerformanceProfile | profile_ |
| const char * | reason_ |
| bool | acquired_ |
RAII lease that balances one performance lock on all scope exit paths.
|
inline |
Acquire a workload profile and release it when this scope ends.
|
inline |
Release the performance profile if it was successfully acquired.
|
delete |
|
delete |
|
private |
|
private |
|
private |
|
private |