Wednesday, 4 September 2013

IOS GCD Related

IOS GCD Related

What happens to the lock in IOS using @synchronized() when we call
dispatch_async() within the block.
For ex:
id myID
-(void) foobar
{
@synchronized(myID){
dispatch_async(){ //do stuff with myID};
}
}
Is the lock still valid within the dispatch_async call? Or more
importantly is there any drawbacks in using another @synchronized() call
inside dispatch_async()?

No comments:

Post a Comment