Set max concurrent to 2 by default
This commit is contained in:
parent
3109110dc0
commit
8f50bf6322
|
@ -66,7 +66,7 @@ NSString *const kCompletedCallbackKey = @"completed";
|
||||||
if ((self = [super init]))
|
if ((self = [super init]))
|
||||||
{
|
{
|
||||||
_downloadQueue = NSOperationQueue.new;
|
_downloadQueue = NSOperationQueue.new;
|
||||||
_downloadQueue.maxConcurrentOperationCount = 10;
|
_downloadQueue.maxConcurrentOperationCount = 2;
|
||||||
_URLCallbacks = NSMutableDictionary.new;
|
_URLCallbacks = NSMutableDictionary.new;
|
||||||
_workingQueue = dispatch_queue_create("com.hackemist.SDWebImageDownloader", DISPATCH_QUEUE_SERIAL);
|
_workingQueue = dispatch_queue_create("com.hackemist.SDWebImageDownloader", DISPATCH_QUEUE_SERIAL);
|
||||||
_barrierQueue = dispatch_queue_create("com.hackemist.SDWebImageDownloaderBarrierQueue", DISPATCH_QUEUE_CONCURRENT);
|
_barrierQueue = dispatch_queue_create("com.hackemist.SDWebImageDownloaderBarrierQueue", DISPATCH_QUEUE_CONCURRENT);
|
||||||
|
|
Loading…
Reference in New Issue