From 0df83d7ba261cdbb5be62db34dae7b972e05ddd9 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 1 Sep 2015 20:56:58 +0100 Subject: Don't start thread in constructor; tidy up thread in destructor (UpdateChecker). --- src/lib/update_checker.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/update_checker.h') diff --git a/src/lib/update_checker.h b/src/lib/update_checker.h index b82be7808..b0eb62273 100644 --- a/src/lib/update_checker.h +++ b/src/lib/update_checker.h @@ -34,7 +34,6 @@ struct update_checker_test; class UpdateChecker : public Signaller, public boost::noncopyable { public: - UpdateChecker (); ~UpdateChecker (); void run (); @@ -83,6 +82,8 @@ private: static bool version_less_than (std::string const & a, std::string const & b); + UpdateChecker (); + void start (); void set_state (State); void thread (); @@ -101,4 +102,5 @@ private: boost::mutex _process_mutex; boost::condition _condition; int _to_do; + bool _terminate; }; -- cgit v1.2.3