The ioQueue is "SERIAL" ,so "dispatch_barrier_async" is not needed.
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -358,7 +358,7 @@ BOOL ImageDataHasPNGPreffix(NSData *data) { | @@ -358,7 +358,7 @@ BOOL ImageDataHasPNGPreffix(NSData *data) { | ||
358 | } | 358 | } |
359 | 359 | ||
360 | - (void)cleanDiskWithCompletionBlock:(void (^)())completionBlock { | 360 | - (void)cleanDiskWithCompletionBlock:(void (^)())completionBlock { |
361 | - dispatch_barrier_async(self.ioQueue, ^{ | 361 | + dispatch_async(self.ioQueue, ^{ |
362 | NSURL *diskCacheURL = [NSURL fileURLWithPath:self.diskCachePath isDirectory:YES]; | 362 | NSURL *diskCacheURL = [NSURL fileURLWithPath:self.diskCachePath isDirectory:YES]; |
363 | NSArray *resourceKeys = @[NSURLIsDirectoryKey, NSURLContentModificationDateKey, NSURLTotalFileAllocatedSizeKey]; | 363 | NSArray *resourceKeys = @[NSURLIsDirectoryKey, NSURLContentModificationDateKey, NSURLTotalFileAllocatedSizeKey]; |
364 | 364 |
-
Please register or login to post a comment