diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-12-04 15:59:39 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-12-04 15:59:39 -0800 |
commit | ec84934d48ee2a4d373a517163750bfedea6d9d9 (patch) | |
tree | a426832f5e94446ae8665175a8099e42221e39f7 /node | |
parent | 328d08781a6998df63d51802b8985ce3561a1c3d (diff) | |
download | infinitytier-ec84934d48ee2a4d373a517163750bfedea6d9d9.tar.gz infinitytier-ec84934d48ee2a4d373a517163750bfedea6d9d9.zip |
Disable spinlock to check CPU usage implications on multithreaded controllers.
Diffstat (limited to 'node')
-rw-r--r-- | node/Mutex.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/node/Mutex.hpp b/node/Mutex.hpp index a60a00b2..8daa851f 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
|