I’m slowly moving a project to the new JUCE version (I’m on old 1.46). I wanted to know if the following classes are 100% thread-safe (= operator, etc…):
- String
- StringArray
- Image
I’m slowly moving a project to the new JUCE version (I’m on old 1.46). I wanted to know if the following classes are 100% thread-safe (= operator, etc…):
String: yes, operator= is thread-safe and you should be ok with that.
StringArray: definitely not.
Image: operator= is thread-safe, but if two threads start trying to manipulate the same image at the same time, then it will all go horribly wrong.