GCD question
GCD question
- Subject: GCD question
- From: "Rick C." <email@hidden>
- Date: Thu, 19 Jul 2012 14:47:13 +0800
Hi,
If I use this to initiate a background "thread":
dispatch_async(dispatch_get_global_queue(0, 0), ^{
// do some stuff
[self runMyFunction];
[self runAnotherFunction];
// do some more stuff
});
My question is with my sample calling runMyFunction or runAnotherFunction are they blocking? Meaning will they block the background "thread" until they are complete and then it will continue? Or must I put them into another kind of block so that they finish FIFO? Thanks just looking for a confirmation as I'm moving to GCD from threads...
rc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden