File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 32
32
/* *
33
33
* The queue on which unzipping of packages is achieved, default is DISPATCH_QUEUE_PRIORITY_LOW.
34
34
* On iOS 5.0, MacOS 10.7 and below you have to get rid of the queue after use if it's not a global one.
35
+ * If set to nil, queue will be reset to default.
35
36
*/
36
37
#if OS_OBJECT_HAVE_OBJC_SUPPORT == 1
37
38
@property (nonatomic , strong ) dispatch_queue_t unzippingQueue;
Original file line number Diff line number Diff line change @@ -204,6 +204,17 @@ - (void)setInstalledPackagesPath:(NSString *)installedPackagesPath
204
204
[self didChangeValueForKey: @" installedPackagesPath" ];
205
205
}
206
206
207
+ - (void )setUnzippingQueue : (dispatch_queue_t )unzippingQueue
208
+ {
209
+ if (!unzippingQueue)
210
+ {
211
+ _unzippingQueue = dispatch_get_global_queue (DISPATCH_QUEUE_PRIORITY_LOW, 0 );
212
+ return ;
213
+ }
214
+
215
+ _unzippingQueue = unzippingQueue;
216
+ }
217
+
207
218
208
219
#pragma mark - download
209
220
You can’t perform that action at this time.
0 commit comments