Go to the documentation of this file.
12 #ifndef RTCTK_RTCSUPERVISOR_RTCMONITOR_HPP
13 #define RTCTK_RTCSUPERVISOR_RTCMONITOR_HPP
16 #include <boost/asio.hpp>
17 #include <boost/thread.hpp>
49 std::atomic<bool> m_time_to_stop;
50 std::atomic<bool> m_mon_active;
51 boost::thread m_the_thread;
53 boost::asio::io_context m_io_context;
58 #endif // RTCTK_RTCSUPERVISOR_RTCMONITOR_HPP
Definition: rtcCommandRequest.hpp:19
void StopMonitor()
stop monitoring
Definition: rtcMonitor.cpp:62
virtual ~RtcMonitor()
Definition: rtcMonitor.cpp:43
boost::asio::io_context & GetIoContext()
Get the I/O context object to be able to use this thread with boost::asio.
Definition: rtcMonitor.hpp:39
RtcMonitor(RtcSupervisor *parent)
Definition: rtcMonitor.cpp:32
void monitor()
Definition: rtcMonitor.cpp:110
void StopThread()
inform the thread to stop execution
Definition: rtcMonitor.cpp:68
Definition: rtcSupervisor.hpp:35
void svc()
Definition: rtcMonitor.cpp:74
Definition: rtcMonitor.hpp:23
void StartMonitor()
start monitoring
Definition: rtcMonitor.cpp:56