8 #include <boost/asio.hpp>
9 #include <boost/asio/posix/stream_descriptor.hpp>
22 boost::asio::io_context _ctx;
23 boost::asio::posix::stream_descriptor _sd;
26 std::array<uint32_t, 1> _result;
33 void start(std::promise<void> subscriptionDonePromise);
35 void readEvent(
const boost::system::error_code& ec);
36 void handleEvent(
const boost::system::error_code& ec, std::size_t bytes_transferred);
37 void timerEvent(
const boost::system::error_code& ec);
38 boost::asio::steady_timer
timer{_ctx};
47 boost::shared_ptr<async::DomainImpl<std::nullptr_t>> _asyncDomain;
49 std::unique_ptr<EventThread> _evtThread;
58 void startThread(std::promise<void> subscriptionDonePromise);