GCD obtaining queue name/label
How about dispatch_queue_get_label
?
In Objective-C you can log the label of the current queue with:
NSLog(@"%s", dispatch_queue_get_label(DISPATCH_CURRENT_QUEUE_LABEL));
In Swift (2.0):
print(String(UTF8String: dispatch_queue_get_label(DISPATCH_CURRENT_QUEUE_LABEL))!)