From ec84934d48ee2a4d373a517163750bfedea6d9d9 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 4 Dec 2018 15:59:39 -0800 Subject: [PATCH] Disable spinlock to check CPU usage implications on multithreaded controllers. --- node/Mutex.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/Mutex.hpp b/node/Mutex.hpp index a60a00b25..8daa851f4 100644 --- a/node/Mutex.hpp +++ b/node/Mutex.hpp @@ -37,7 +37,8 @@ namespace ZeroTier { -#if defined(__GNUC__) && (defined(__amd64) || defined(__amd64__) || defined(__x86_64) || defined(__x86_64__) || defined(__AMD64) || defined(__AMD64__) || defined(_M_X64)) +//#if defined(__GNUC__) && (defined(__amd64) || defined(__amd64__) || defined(__x86_64) || defined(__x86_64__) || defined(__AMD64) || defined(__AMD64__) || defined(_M_X64)) +#if 0 // Inline ticket lock on x64 systems with GCC and CLANG (Mac, Linux) -- this is really fast as long as locking durations are very short class Mutex