diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-09-01 20:56:58 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-09-01 20:56:58 +0100 |
| commit | 0df83d7ba261cdbb5be62db34dae7b972e05ddd9 (patch) | |
| tree | 62e81768778f7cbe071d9a7ed90938a9dabaa356 /src/lib/update_checker.h | |
| parent | 6904ca547ce503c9ea06b4def9b9a716068e493c (diff) | |
Don't start thread in constructor; tidy up thread in destructor (UpdateChecker).
Diffstat (limited to 'src/lib/update_checker.h')
| -rw-r--r-- | src/lib/update_checker.h | 4 |
1 files changed, 3 insertions, 1 deletions
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; }; |
