3 #include <Poco/SharedPtr.h>
4 #include <Poco/Timespan.h>
6 #include "util/Loggable.h"
7 #include "loop/StoppableRunnable.h"
19 typedef Poco::SharedPtr<StoppableLoop> Ptr;
26 virtual void start() = 0;
31 virtual void stop() = 0;
41 void start()
override;
44 void setStopTimeout(
const Poco::Timespan &timeout);
46 StoppableRunnable::Ptr runnable()
const;
52 Poco::Timespan m_stopTimeout;
53 StoppableRunnable::Ptr m_runnable;
54 Poco::Thread *m_thread;
Definition: StoppableLoop.h:17
void stop() override
Definition: StoppableLoop.cpp:55
void start() override
Definition: StoppableLoop.cpp:43
Definition: Loggable.h:19
Definition: StoppableLoop.h:34