mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-01 03:10:06 +00:00
Removed some old iOS workarounds from the atomic class.
This commit is contained in:
parent
74ed52e20e
commit
ad324efc01
1 changed files with 0 additions and 10 deletions
|
|
@ -196,16 +196,6 @@ private:
|
|||
#define JUCE_MAC_ATOMICS_VOLATILE volatile
|
||||
#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
|
||||
#define JUCE_ATOMICS_GCC 1 // GCC with intrinsics
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue