Joseph Heenan
Committed by Ben Copsey

Add an accessor for the shared queue.

This can be used by clients to alter or inspect the queue.

The most obvious use for this is calling setMaxConcurrentOperations: on the queue to alter the number of simultaneous requests that will be made over the network.
... ... @@ -702,6 +702,11 @@ extern unsigned long const ASIWWANBandwidthThrottleAmount;
#endif
#pragma mark queue
// Returns the shared queue
+ (NSOperationQueue *)sharedQueue;
#pragma mark cache
+ (void)setDefaultCache:(id <ASICacheDelegate>)cache;
... ...
... ... @@ -3902,6 +3902,14 @@ static NSOperationQueue *sharedQueue = nil;
}
#endif
#pragma mark queue
// Returns the shared queue
+ (NSOperationQueue *)sharedQueue
{
return [[sharedQueue retain] autorelease];
}
#pragma mark cache
+ (void)setDefaultCache:(id <ASICacheDelegate>)cache
... ...