in Source/TNLPriority.m [214:240]
dispatch_queue_priority_t TNLConvertTNLPriorityToGCDPriority(TNLPriority pri)
{
switch (pri) {
case TNLPriorityVeryHigh:
return DISPATCH_QUEUE_PRIORITY_HIGH + 1;
case TNLPriorityHigh:
return DISPATCH_QUEUE_PRIORITY_HIGH;
case TNLPriorityNormal:
return DISPATCH_QUEUE_PRIORITY_DEFAULT;
case TNLPriorityLow:
return DISPATCH_QUEUE_PRIORITY_LOW;
case TNLPriorityVeryLow:
return DISPATCH_QUEUE_PRIORITY_BACKGROUND;
default:
break;
}
if (pri > TNLPriorityVeryHigh) {
return DISPATCH_QUEUE_PRIORITY_HIGH + 2;
}
if (pri < TNLPriorityVeryLow) {
return DISPATCH_QUEUE_PRIORITY_BACKGROUND;
}
TNLAssertNever();
return DISPATCH_QUEUE_PRIORITY_DEFAULT;
}