Ersa Wearable Platform
Embedded smartwatch firmware and application framework
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Dvfs::Scope Class Reference

#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_
 

Detailed Description

RAII wrapper that balances acquire/release for one temporary profile.

Constructor & Destructor Documentation

◆ Scope() [1/2]

Dvfs::Scope::Scope ( Profile  profile,
const char *  reason 
)

Acquire profile for the lexical scope; failed acquisition is a no-op.

◆ ~Scope()

Dvfs::Scope::~Scope ( )
default

Release profile only when the constructor successfully acquired it.

◆ Scope() [2/2]

Dvfs::Scope::Scope ( const Scope &  )
delete

Member Function Documentation

◆ operator=()

Scope & Dvfs::Scope::operator= ( const Scope &  )
delete

Member Data Documentation

◆ acquired_

bool Dvfs::Scope::acquired_
private

◆ profile_

Profile Dvfs::Scope::profile_
private

◆ reason_

const char* Dvfs::Scope::reason_
private

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