If I store a dispatch_queue_t like so:
@property(assign, nonatomic) dispatch_queue_t myQueue;
...
_myQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
Later, when I do operations like
dispatch_async(_myQueue, ^{
NSLog(@"Hi!");
});
and then somewhere else
dispatch_async(_myQueue, ^{
NSLog(@"Hello!");
});
are these blocks executed on the same thread? If not, how do I ensure that they are? Basically I want to keep a reference to a thread and make it execute some actions only on that thread.