Minor race condition in mac networking


#1

Tsan has flagged up a race condition in juce_mac_Network.cpp.
Would it be possible to change these to atomics on line 864?

-    bool initialised = false, hasFailed = false, hasFinished = false;
+    std::atomic<bool> initialised { false }, hasFailed { false }, hasFinished { false };

#2

Sure, I’ll sort that out


#3

:+1: