Explorar el Código

Disable spinlock to check CPU usage implications on multithreaded controllers.

Adam Ierymenko hace 6 años
padre
commit
ec84934d48
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      node/Mutex.hpp

+ 2 - 1
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