diff --git a/Include/Aurora/Threading/Waitables/FutexCondWaitable.hpp b/Include/Aurora/Threading/Waitables/FutexCondWaitable.hpp index 4c723f09..3e23dbbe 100644 --- a/Include/Aurora/Threading/Waitables/FutexCondWaitable.hpp +++ b/Include/Aurora/Threading/Waitables/FutexCondWaitable.hpp @@ -187,7 +187,7 @@ namespace Aurora::Threading::Waitables return true; } - #if defined(AURORA_ARCH_X86) || defined(AURORA_ARCH_X64) + #if (defined(AURORA_ARCH_X86) || defined(AURORA_ARCH_X64)) && !defined(AURORA_RUNTIME_FORCE_ADAPTIVE_FUTEX) AuUInt uCount(GetTotalSpinCountTimeout()); for (AU_ITERATE_N(i, uCount)) { diff --git a/Include/Aurora/Threading/Waitables/FutexSemaphoreWaitable.hpp b/Include/Aurora/Threading/Waitables/FutexSemaphoreWaitable.hpp index e28980e3..11fe5339 100644 --- a/Include/Aurora/Threading/Waitables/FutexSemaphoreWaitable.hpp +++ b/Include/Aurora/Threading/Waitables/FutexSemaphoreWaitable.hpp @@ -32,7 +32,7 @@ namespace Aurora::Threading::Waitables return true; } - #if defined(AURORA_ARCH_X86) || defined(AURORA_ARCH_X64) + #if (defined(AURORA_ARCH_X86) || defined(AURORA_ARCH_X64)) && !defined(AURORA_RUNTIME_FORCE_ADAPTIVE_FUTEX) AuUInt uCount(GetTotalSpinCountTimeout()); for (AU_ITERATE_N(i, uCount)) { diff --git a/Include/Aurora/Threading/Waitables/FutexWaitable.hpp b/Include/Aurora/Threading/Waitables/FutexWaitable.hpp index c8c1f5d2..879cf2a4 100644 --- a/Include/Aurora/Threading/Waitables/FutexWaitable.hpp +++ b/Include/Aurora/Threading/Waitables/FutexWaitable.hpp @@ -31,7 +31,7 @@ namespace Aurora::Threading::Waitables return true; } - #if defined(AURORA_ARCH_X86) || defined(AURORA_ARCH_X64) + #if (defined(AURORA_ARCH_X86) || defined(AURORA_ARCH_X64)) && !defined(AURORA_RUNTIME_FORCE_ADAPTIVE_FUTEX) AuUInt uCount(GetTotalSpinCountTimeout()); for (AU_ITERATE_N(i, uCount)) {