From cafbe44dde55e57115cc654610172556dff19bec Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 24 Apr 2017 19:16:36 -0700 Subject: Controller optimizations -- make locking more fine-grained, use true hardware concurrency, etc. --- selftest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'selftest.cpp') diff --git a/selftest.cpp b/selftest.cpp index 91d304a6..33e65f2c 100644 --- a/selftest.cpp +++ b/selftest.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include "node/Constants.hpp" #include "node/Hashtable.hpp" @@ -1114,6 +1115,7 @@ int main(int argc,char **argv) */ std::cout << "[info] sizeof(void *) == " << sizeof(void *) << std::endl; + std::cout << "[info] hardware concurrency == " << std::thread::hardware_concurrency() << std::endl; std::cout << "[info] sizeof(NetworkConfig) == " << sizeof(ZeroTier::NetworkConfig) << std::endl; srand((unsigned int)time(0)); -- cgit v1.2.3