#pragma once #include "thread.hpp" #include class Connection; class WatchdogThread : public Thread, public std::enable_shared_from_this { Connection * connection_; boost::asio::steady_timer timer_; public: WatchdogThread(Connection * connection) noexcept; auto priority() const -> priority_type override; auto on_event(Event const& event) -> std::pair override; };