diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-01-11 14:31:19 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-01-11 14:31:19 -0800 |
commit | 5f976d74307e4fd6b62bfb8666122faf46416de8 (patch) | |
tree | cd8d0b4d6112aaaca2b6c433718a6323ab157f02 | |
parent | f87326fc21fb6db0944730ba1fe961d8bb249450 (diff) | |
download | infinitytier-5f976d74307e4fd6b62bfb8666122faf46416de8.tar.gz infinitytier-5f976d74307e4fd6b62bfb8666122faf46416de8.zip |
Reenable faster lock.
-rw-r--r-- | node/Mutex.hpp | 3 |
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
|