Hello,
I am sorry, I am quite noob in Atomic subjects. I was always sure that juce::Atomic (or std::atomic) work properly only on basic primitives like int, bool, float etc. But I’ve just found out the line:
is compilable. And as far as I understand it, if std::atomic<T>::is_always_lock_free returns true it means that type T can be used as an atomic variable. But juce::Range<float> seems to be much more complex object than basic float.
So I would like to ask if it is safe if in DSP thread I use (read) object of:
Atomic<Range<float>> myAtomicRange;
which can be set in message thread?
To be more detailed, in DSP thread I want to use myRange by calling: