I've read the "Thread safe APIs" document and it states that I can safely read or write to variables or array or dict elements. However, I'm wondering if GDScript statements like "x += 1" are guaranteed to reflect the operations of multiple threads. I think this is an implementation question. If it is really...
x = x + 1
...then I could imagine two threads (almost simultaneously) reading x, seeing the same value, and then writing the same incremented value to x. Thus we have incremented +1 instead of +2 as I would hope. (And would the answer be the same for similar operations on non-int types -- in particular, float?)
I'm sure this is a very basic question for experts. But that's the level I'm working at.
Edit: links to source code are more than welcome. I can somewhat read & understand C++, but am too ignorant to know where to look most of the time.