I have a requirement to perform a small set of related tasks in a custom thread created for them. Tasks will be assigned from different classes. I plan on using GCD dispatch_queue_create to create a custom thread and schedule a task on it. Please note that all related tasks should be performed on only one thread in order.
So my question is: if I call dispatch_queue_create ("my_custom_thread_label", NULL) with the same shortcut from many classes in my codebase, will all this ultimately be displayed in only one thread? Or do I need to create it in one place and get a link to it when necessary? Thanks.
ios iphone grand-central-dispatch
George burdell
source share