Change prefetchURLs from nonatomic to atomic to avoid multi-thread access crash

This commit is contained in:
DreamPiggy 2017-11-21 22:49:04 +08:00
parent 11ffd5a3e7
commit 8ac6e08476
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@
@interface SDWebImagePrefetcher ()
@property (strong, nonatomic, nonnull) SDWebImageManager *manager;
@property (strong, nonatomic, nullable) NSArray<NSURL *> *prefetchURLs;
@property (strong, atomic, nullable) NSArray<NSURL *> *prefetchURLs; // may be accessed from different queue
@property (assign, nonatomic) NSUInteger requestedCount;
@property (assign, nonatomic) NSUInteger skippedCount;
@property (assign, nonatomic) NSUInteger finishedCount;