16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_POWER_POWERMONITOR_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_POWER_POWERMONITOR_H_ 23 #include <unordered_map> 55 void activate(std::shared_ptr<sdkInterfaces::PowerResourceManagerInterface> powerManager);
134 bool isActiveLocked();
137 static std::mutex m_mutex;
140 static std::shared_ptr<PowerMonitor> m_monitor;
143 std::shared_ptr<sdkInterfaces::PowerResourceManagerInterface> m_powerManager;
146 std::unordered_map<std::thread::id, std::shared_ptr<PowerResource>> m_threadPowerResources;
154 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_POWER_POWERMONITOR_H_ STANDBY_MED usually means all the hardware components work in the medium standby power levels...
PowerResourceLevel
Definition: PowerResourceManagerInterface.h:49
void activate(std::shared_ptr< sdkInterfaces::PowerResourceManagerInterface > powerManager)
::std::string string
Definition: gtest-port.h:1097
std::shared_ptr< PowerResource > createLocalPowerResource(const std::string &identifier, sdkInterfaces::PowerResourceManagerInterface::PowerResourceLevel level=sdkInterfaces::PowerResourceManagerInterface::PowerResourceLevel::STANDBY_MED)
Definition: PowerMonitor.h:41
std::shared_ptr< PowerResource > getThreadPowerResource()
static std::shared_ptr< PowerMonitor > getInstance()
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
void removeThreadPowerResource()
std::shared_ptr< PowerResource > assignThreadPowerResource(std::shared_ptr< PowerResource > powerResource)
std::shared_ptr< sdkInterfaces::PowerResourceManagerInterface > getPowerResourceManager()
std::shared_ptr< PowerResource > getThreadPowerResourceOrCreate(const std::string &identifier, sdkInterfaces::PowerResourceManagerInterface::PowerResourceLevel level=sdkInterfaces::PowerResourceManagerInterface::PowerResourceLevel::STANDBY_MED)