|
Ersa Wearable Platform
Embedded smartwatch firmware and application framework
|
#include <esp32_dvfs_backend.h>
Public Member Functions | |
| Scope (Profile profile, const char *reason) | |
| ~Scope () | |
| Scope (const Scope &)=delete | |
| Scope & | operator= (const Scope &)=delete |
Private Attributes | |
| Profile | profile_ |
| const char * | reason_ |
| bool | acquired_ |
RAII wrapper that balances acquire/release for one temporary profile.
| Dvfs::Scope::Scope | ( | Profile | profile, |
| const char * | reason | ||
| ) |
Acquire profile for the lexical scope; failed acquisition is a no-op.
|
default |
Release profile only when the constructor successfully acquired it.
|
delete |
|
private |
|
private |
|
private |