summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2018-01-11 14:31:19 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2018-01-11 14:31:19 -0800
commit5f976d74307e4fd6b62bfb8666122faf46416de8 (patch)
treecd8d0b4d6112aaaca2b6c433718a6323ab157f02
parentf87326fc21fb6db0944730ba1fe961d8bb249450 (diff)
downloadinfinitytier-5f976d74307e4fd6b62bfb8666122faf46416de8.tar.gz
infinitytier-5f976d74307e4fd6b62bfb8666122faf46416de8.zip
Reenable faster lock.
-rw-r--r--node/Mutex.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/node/Mutex.hpp b/node/Mutex.hpp
index e0917f01..cbd80524 100644
--- a/node/Mutex.hpp
+++ b/node/Mutex.hpp
@@ -38,8 +38,7 @@
namespace ZeroTier {
-//#if defined(__GNUC__) && (defined(__amd64) || defined(__amd64__) || defined(__x86_64) || defined(__x86_64__) || defined(__AMD64) || defined(__AMD64__) || defined(_M_X64))
-#if 0
+#if defined(__GNUC__) && (defined(__amd64) || defined(__amd64__) || defined(__x86_64) || defined(__x86_64__) || defined(__AMD64) || defined(__AMD64__) || defined(_M_X64))
// 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 : NonCopyable