From dab65ae8f5883d0bef61a092bf89bf505df85f61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E5=85=8B?= Date: Sat, 24 May 2014 21:08:39 +0800 Subject: [PATCH] =?UTF-8?q?The=20ioQueue=20is=20"SERIAL"=20=EF=BC=8Cso=20"?= =?UTF-8?q?dispatch=5Fbarrier=5Fasync"=20is=20not=20needed.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SDWebImage/SDImageCache.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/SDImageCache.m b/SDWebImage/SDImageCache.m index 233fd5a..63ce0d9 100644 --- a/SDWebImage/SDImageCache.m +++ b/SDWebImage/SDImageCache.m @@ -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];