Change prefetchURLs from nonatomic to atomic to avoid multi-thread access crash
This commit is contained in:
parent
11ffd5a3e7
commit
8ac6e08476
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue