29#include <sptk5/Strings.h>
92 virtual void run() = 0;
95 using SRunable = std::shared_ptr<Runable>;
97 mutable std::mutex m_dataMutex;
98 bool m_terminated {
false};
100 std::list<SRunable>::iterator m_position;
106 void setTerminated(
bool terminated);
109using SRunable = std::shared_ptr<Runable>;
114 void push(
const SRunable& runable);
117 mutable std::mutex m_mutex;
118 std::list<SRunable> m_queue;
Definition: Runable.h:112
String name() const
Definition: Runable.h:81
Runable(const String &name)
virtual ~Runable()=default