mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2024-11-29 05:49:21 +00:00
don't use QOS_CLASS_* on iOS <8
This commit is contained in:
parent
d60cd3a189
commit
739e763089
@ -55,7 +55,8 @@ static const char kDiskImageIconAttributeName[] = "net.namedfork.DiskImageIcon";
|
||||
|
||||
+ (void)loadIconForDiskImageAndNotify:(NSString *)path {
|
||||
if ([NSThread isMainThread]) {
|
||||
dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), ^{
|
||||
long queue = NSFoundationVersionNumber >= NSFoundationVersionNumber_iOS_8_0 ? QOS_CLASS_USER_INITIATED : DISPATCH_QUEUE_PRIORITY_LOW;
|
||||
dispatch_async(dispatch_get_global_queue(queue, 0), ^{
|
||||
[self loadIconForDiskImageAndNotify:path];
|
||||
});
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user