Browse Source

macOS: Fixed a couple of potential data races flagged by tsan in the native networking code

tags/2021-05-28
ed 6 years ago
parent
commit
c3df4ac8a4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_core/native/juce_mac_Network.mm

+ 2
- 2
modules/juce_core/native/juce_mac_Network.mm View File

@@ -331,8 +331,8 @@ public:
NSMutableData* data = nil;
NSDictionary* headers = nil;
int statusCode = 0;
std::atomic<bool> initialised { false };
bool hasFailed = false, hasFinished = false, isBeingDeleted = false;
std::atomic<bool> initialised { false }, hasFailed { false }, hasFinished { false };
bool isBeingDeleted = false;
const int numRedirectsToFollow;
int numRedirects = 0;
int64 latestTotalBytes = 0;


Loading…
Cancel
Save