class UpdateChecker : public Signaller, public boost::noncopyable
{
public:
- UpdateChecker ();
~UpdateChecker ();
void run ();
return _stable;
}
- /** @return new test version, if there is one and Config is set to look for it */
+ /** @return new test version, if there is one */
boost::optional<std::string> test () {
boost::mutex::scoped_lock lm (_data_mutex);
return _test;
}
- /** @return true if the last signal emission was the first */
- bool last_emit_was_first () const {
- boost::mutex::scoped_lock lm (_data_mutex);
- return _emits == 1;
- }
-
size_t write_callback (void *, size_t, size_t);
boost::signals2::signal<void (void)> StateChanged;
static bool version_less_than (std::string const & a, std::string const & b);
+ UpdateChecker ();
+ void start ();
void set_state (State);
void thread ();
boost::mutex _process_mutex;
boost::condition _condition;
int _to_do;
+ bool _terminate;
};