diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-11-13 00:04:23 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-11-13 00:04:23 +0000 |
| commit | 264583479e79b481251f1772b228f82cd77552d3 (patch) | |
| tree | 868f3347c1784ecde6ee626f6799334f3ef235b6 /src/lib/monitor_checker.h | |
| parent | f80010debf14112a632f42ddc7588995698b3d19 (diff) | |
swaroop: only allow playback if configured lock file is present.v2.13.72
Diffstat (limited to 'src/lib/monitor_checker.h')
| -rw-r--r-- | src/lib/monitor_checker.h | 21 |
1 files changed, 6 insertions, 15 deletions
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 <boost/signals2.hpp> -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<void (void)> 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; }; |
