How can I check for equality between dispatch_queue_t vars?
dispatch_queue_t currentQueue = dispatch_get_current_queue();
dispatch_queue_t mainQueue = dispatch_get_main_queue();
if (currentQueue == mainQueue) {
}
from the docs:
typedef struct dispatch_queue_s *dispatch_queue_t;
I'm not sure but does this mean that it's a pointer to a dispatch_queue_s struct?
Since I can't check equality on pointers, I'm not sure how can I check if a dispatch_queue_t is the same as another?