16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_TEST_AVSCOMMON_UTILS_TIMING_STOPTASKTIMER_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_TEST_AVSCOMMON_UTILS_TIMING_STOPTASKTIMER_H_ 48 std::chrono::nanoseconds delay,
49 std::chrono::nanoseconds period,
52 std::function<
void()> task)
override;
66 std::mutex m_taskMutex;
72 std::function<void()> m_task;
75 std::unique_ptr<avsCommon::sdkInterfaces::timing::TimerDelegateInterface> m_delegate;
82 bool supportsLowPowerMode()
override;
83 std::unique_ptr<avsCommon::sdkInterfaces::timing::TimerDelegateInterface> getTimerDelegate()
override;
87 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_TEST_AVSCOMMON_UTILS_TIMING_STOPTASKTIMER_H_ Definition: TimerDelegateInterface.h:31
Definition: StopTaskTimer.h:78
void start(std::chrono::nanoseconds delay, std::chrono::nanoseconds period, PeriodType periodType, size_t maxCount, std::function< void()> task) override
Definition: StopTaskTimer.cpp:58
bool isActive() const override
Definition: StopTaskTimer.cpp:96
Definition: AmdMetricWrapperTest.cpp:24
A factory for creating TimerDelegateInterface.
Definition: TimerDelegateFactoryInterface.h:29
bool activate() override
Definition: StopTaskTimer.cpp:89
void stop() override
Definition: StopTaskTimer.cpp:76
~StopTaskTimer()
Destructor.
Definition: StopTaskTimer.cpp:53
Definition: StopTaskTimer.h:43
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
PeriodType
Specifies different ways to apply the period of a recurring task.
Definition: TimerDelegateInterface.h:48
StopTaskTimer()
Constructor.
Definition: StopTaskTimer.cpp:48