summaryrefslogtreecommitdiff
path: root/src/lib/server_finder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-07-06 14:06:25 +0100
committerCarl Hetherington <cth@carlh.net>2015-07-06 14:06:25 +0100
commit96a2b6f7ce0be67248cbc612e2ef03ea7d586039 (patch)
tree09ef052f6d21eb139e2490f3680895509aaa6205 /src/lib/server_finder.h
parenta6e7017b36ea2cee9f95c45fc0a4f85294dbc16f (diff)
Search for servers immediately when configuration changes.
Diffstat (limited to 'src/lib/server_finder.h')
-rw-r--r--src/lib/server_finder.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/server_finder.h b/src/lib/server_finder.h
index 22f44eeb8..3bb0e03f9 100644
--- a/src/lib/server_finder.h
+++ b/src/lib/server_finder.h
@@ -53,6 +53,7 @@ private:
void handle_accept (boost::system::error_code ec, boost::shared_ptr<Socket> socket);
void config_changed (Config::Property what);
+ void search_now ();
bool _disabled;
@@ -68,5 +69,8 @@ private:
boost::shared_ptr<boost::asio::ip::tcp::acceptor> _listen_acceptor;
bool _stop;
+ boost::condition _search_condition;
+ boost::mutex _search_condition_mutex;
+
static ServerFinder* _instance;
};