CachedValue<> thread safety


#1

Is it safe to use CachedValue<>'s assignment operator and/or setValue method from inside an AudioProcessor::processBlock?


#2

Judging from

template <typename Type>
inline void CachedValue<Type>::setValue (const Type& newValue, UndoManager* undoManagerToUse)
{
    if (cachedValue != newValue || isUsingDefault())
    {
        cachedValue = newValue;
        targetTree.setProperty (targetProperty, VariantConverter<Type>::toVar (newValue), undoManagerToUse);
    }
}

I presume the answer is no?