You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting thread race warnings for HWIFileDownloader.activeDownloadsDictionary (of type NSMutableDictionary<NSNumber *, HWIFileDownloadItem *>).
When I open my application, I verify if a certain number of files are downloaded on the device storage (±80 files). For the ones that are missing, I'm starting the download process (in parallel).
At line 313, we add the aDownloadItem in the activeDownloadsDictionary ([self.activeDownloadsDictionary setObject:aDownloadItem forKey:@(aDownloadID)];)
At the same time, on another thread, a download has finished and
is called. Inside this method, we remove the download item from the activeDownloadsDictionary ([self.activeDownloadsDictionary removeObjectForKey:@(aDownloadID)];).
I'm getting thread race warnings for
HWIFileDownloader.activeDownloadsDictionary
(of typeNSMutableDictionary<NSNumber *, HWIFileDownloadItem *>
).When I open my application, I verify if a certain number of files are downloaded on the device storage (±80 files). For the ones that are missing, I'm starting the download process (in parallel).
The race condition that I get is related to
At line 313, we add the
aDownloadItem
in theactiveDownloadsDictionary
([self.activeDownloadsDictionary setObject:aDownloadItem forKey:@(aDownloadID)];
)At the same time, on another thread, a download has finished and
is called. Inside this method, we remove the download item from the
activeDownloadsDictionary
([self.activeDownloadsDictionary removeObjectForKey:@(aDownloadID)];
).Here's the full Thread Sanitizer output
The text was updated successfully, but these errors were encountered: