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; @@ -702,6 +702,11 @@ extern unsigned long const ASIWWANBandwidthThrottleAmount;
702 702
703 #endif 703 #endif
704 704
  705 +#pragma mark queue
  706 +
  707 +// Returns the shared queue
  708 ++ (NSOperationQueue *)sharedQueue;
  709 +
705 #pragma mark cache 710 #pragma mark cache
706 711
707 + (void)setDefaultCache:(id <ASICacheDelegate>)cache; 712 + (void)setDefaultCache:(id <ASICacheDelegate>)cache;
@@ -3902,6 +3902,14 @@ static NSOperationQueue *sharedQueue = nil; @@ -3902,6 +3902,14 @@ static NSOperationQueue *sharedQueue = nil;
3902 } 3902 }
3903 #endif 3903 #endif
3904 3904
  3905 +#pragma mark queue
  3906 +
  3907 +// Returns the shared queue
  3908 ++ (NSOperationQueue *)sharedQueue
  3909 +{
  3910 + return [[sharedQueue retain] autorelease];
  3911 +}
  3912 +
3905 #pragma mark cache 3913 #pragma mark cache
3906 3914
3907 + (void)setDefaultCache:(id <ASICacheDelegate>)cache 3915 + (void)setDefaultCache:(id <ASICacheDelegate>)cache