Hi,
What does it mean the following code?
I've reade about cuncurrency but still don't understand:
1. Why do we need autorelease pool?
2. I assume logInfo method will be executed in other thread.(without hanging main thread) Correct?
3. What difference between thread and queue?
Thank you, in advance.
What does it mean the following code?
dispatch_async(dispatch_get_main_queue(), ^{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
[self logInfo:FORMAT(@"Client Disconnected")];
[pool release];
});
I've reade about cuncurrency but still don't understand:
1. Why do we need autorelease pool?
2. I assume logInfo method will be executed in other thread.(without hanging main thread) Correct?
3. What difference between thread and queue?
Thank you, in advance.