summaryrefslogtreecommitdiff
path: root/controller/JSONDB.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-04-26 10:35:59 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-04-26 10:35:59 -0700
commit7c184cf9919fb9d01b8279397e7b20fa756dc981 (patch)
tree1c94a4ad173ed25af7512974dbee90e4dd5e2e07 /controller/JSONDB.hpp
parent72def658d0ad8dda1e1735f6b28a7a0ec0235c22 (diff)
downloadinfinitytier-7c184cf9919fb9d01b8279397e7b20fa756dc981.tar.gz
infinitytier-7c184cf9919fb9d01b8279397e7b20fa756dc981.zip
Another performance improvement to controller.
Diffstat (limited to 'controller/JSONDB.hpp')
-rw-r--r--controller/JSONDB.hpp5
1 files changed, 2 insertions, 3 deletions
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<uint64_t> _updateSummaryInfoQueue;
-
Thread _summaryThread;
+ std::vector<uint64_t> _summaryThreadToDo;
+ volatile bool _summaryThreadRun;
Mutex _summaryThread_m;
struct _NW