Browse Source

Removed some old iOS workarounds from the atomic class.

tags/2021-05-28
jules 12 years ago
parent
commit
ad324efc01
1 changed files with 0 additions and 10 deletions
  1. +0
    -10
      modules/juce_core/memory/juce_Atomic.h

+ 0
- 10
modules/juce_core/memory/juce_Atomic.h View File

@@ -196,16 +196,6 @@ private:
#define JUCE_MAC_ATOMICS_VOLATILE volatile #define JUCE_MAC_ATOMICS_VOLATILE volatile
#endif #endif
#if JUCE_PPC || JUCE_IOS
// None of these atomics are available for PPC or for iOS 3.1 or earlier!!
template <typename Type> static Type OSAtomicAdd64Barrier (Type b, JUCE_MAC_ATOMICS_VOLATILE Type* a) noexcept { jassertfalse; return *a += b; }
template <typename Type> static Type OSAtomicIncrement64Barrier (JUCE_MAC_ATOMICS_VOLATILE Type* a) noexcept { jassertfalse; return ++*a; }
template <typename Type> static Type OSAtomicDecrement64Barrier (JUCE_MAC_ATOMICS_VOLATILE Type* a) noexcept { jassertfalse; return --*a; }
template <typename Type> static bool OSAtomicCompareAndSwap64Barrier (Type old, Type newValue, JUCE_MAC_ATOMICS_VOLATILE Type* value) noexcept
{ jassertfalse; if (old == *value) { *value = newValue; return true; } return false; }
#define JUCE_64BIT_ATOMICS_UNAVAILABLE 1
#endif
//============================================================================== //==============================================================================
#elif JUCE_GCC #elif JUCE_GCC
#define JUCE_ATOMICS_GCC 1 // GCC with intrinsics #define JUCE_ATOMICS_GCC 1 // GCC with intrinsics


Loading…
Cancel
Save