1#ifndef IV_SRC_THREADS_THREADRUNNABLEPERIODIC_HPP_
2#define IV_SRC_THREADS_THREADRUNNABLEPERIODIC_HPP_
38 catch (
const std::exception &e)
40 auto errorMessage = fmt::format(
"ThreadRunnablePeriodic::runFrame() thread name: {} exception: {}",
45 std::cerr << errorMessage << std::endl;
static void showErrorDialog(std::string_view msg)
Show a zenity dialog with the message.
Definition CLoggerZenity.cpp:93
std::string_view m_taskName
Definition IRunnable.hpp:38
Definition ThreadRunnablePeriodic.hpp:15
iv::types::pollTime m_sleepMs
Definition ThreadRunnablePeriodic.hpp:50
void runFrame() override
Definition ThreadRunnablePeriodic.hpp:31
ThreadRunnablePeriodic(const iv::types::pollTime sleepMs, const std::weak_ptr< bool > &isEnabledRef)
Definition ThreadRunnablePeriodic.hpp:21
~ThreadRunnablePeriodic() override=default
virtual void periodicTask()=0
ThreadRunnablePeriodic(const iv::types::pollTime sleepMs)
Definition ThreadRunnablePeriodic.hpp:17
Definition ThreadRunnable.hpp:14
void sleepFrame(iv::types::pollTime milliseconds)
Definition ThreadRunnable.cpp:118
Definition BackgroundTaskWithDialog.cpp:8
std::chrono::milliseconds pollTime
Definition types.hpp:44