Incorrect assumptions on 32-bit builds about juce_InterlockedXYZ functions


#1
// None of these atomics are available in a 32-bit Windows build!!

This is actually false. All of these interlocked functions are indeed available for 32-bit platforms. The issue here is that you can’t use #pragma intrinsic. Instead, you need to include the native header Windows.h to access these functions.


#2

Well, not going to bother changing that now - as part of our C++11 shift, we’ll soon be able to ditch all that stuff and just replace it with an implementation based on std::atomic.


#3

Fair enough. I’ll be sweeping our app’s codebase to do exactly that…