X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fmonitor_checker.h;h=f99ab4b2a46e31c90e019877f0c1f7f021784569;hp=4f856f41fda6d51a6108c11d52b5a1bfb74b36c0;hb=264583479e79b481251f1772b228f82cd77552d3;hpb=f80010debf14112a632f42ddc7588995698b3d19 diff --git a/src/lib/monitor_checker.h b/src/lib/monitor_checker.h index 4f856f41f..f99ab4b2a 100644 --- a/src/lib/monitor_checker.h +++ b/src/lib/monitor_checker.h @@ -18,28 +18,19 @@ */ -#include "signaller.h" +#include "checker.h" #include -class MonitorChecker : public Signaller, public boost::noncopyable +class MonitorChecker : public Checker { public: - ~MonitorChecker (); + MonitorChecker (); - void run (); + static MonitorChecker* instance (); - bool ok () const; - boost::signals2::signal StateChanged; +protected: + bool check () const; - static MonitorChecker* instance (); private: static MonitorChecker* _instance; - - MonitorChecker (); - void thread (); - - boost::thread* _thread; - mutable boost::mutex _mutex; - bool _terminate; - bool _ok; };