From 7c184cf9919fb9d01b8279397e7b20fa756dc981 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 26 Apr 2017 10:35:59 -0700 Subject: Another performance improvement to controller. --- controller/JSONDB.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'controller/JSONDB.hpp') diff --git a/controller/JSONDB.hpp b/controller/JSONDB.hpp index 0883bd4b..55ead4ea 100644 --- a/controller/JSONDB.hpp +++ b/controller/JSONDB.hpp @@ -38,7 +38,6 @@ #include "../osdep/OSUtils.hpp" #include "../osdep/Http.hpp" #include "../osdep/Thread.hpp" -#include "../osdep/BlockingQueue.hpp" namespace ZeroTier { @@ -171,9 +170,9 @@ private: std::string _basePath; InetAddress _httpAddr; - BlockingQueue _updateSummaryInfoQueue; - Thread _summaryThread; + std::vector _summaryThreadToDo; + volatile bool _summaryThreadRun; Mutex _summaryThread_m; struct _NW -- cgit v1.2.3