Errata

Concurrent Programming in Mac OS X and iOS

Errata for Concurrent Programming in Mac OS X and iOS

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
PDF Page 31
last block of code dispatch_sync(dispatch_get_main_queue()

On page 23 book says:
"The dispatch_sync method cannot be called on the main queue because it will block the thread indefinitely and cause your application to dead- lock. All tasks submitted to the main queue through GCD must be sub- mitted asynchronously."

But on page 31 last block of code is doing this mistake calling dispatch_sync on main queue.

dispatch_sync(dispatch_get_main_queue(), ^{
/* Show the image to the user here on the main queue*/
.
.
.
.
.

Sunny  May 28, 2014