The ioQueue is "SERIAL" ,so "dispatch_barrier_async" is not needed.

This commit is contained in:
卢克 2014-05-24 21:08:39 +08:00
parent b1203d4a9e
commit dab65ae8f5
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ BOOL ImageDataHasPNGPreffix(NSData *data) {
}
- (void)cleanDiskWithCompletionBlock:(void (^)())completionBlock {
dispatch_barrier_async(self.ioQueue, ^{
dispatch_async(self.ioQueue, ^{
NSURL *diskCacheURL = [NSURL fileURLWithPath:self.diskCachePath isDirectory:YES];
NSArray *resourceKeys = @[NSURLIsDirectoryKey, NSURLContentModificationDateKey, NSURLTotalFileAllocatedSizeKey];