Re: Concurrent tasks are getting hung up
Re: Concurrent tasks are getting hung up
- Subject: Re: Concurrent tasks are getting hung up
- From: Jens Alfke <email@hidden>
- Date: Thu, 09 Oct 2014 13:07:01 -0700
First check the docs for the CGImage APIs to see what their thread-safety is like. I'm guessing you may need to create a new context for each different thread you use them in. That's relevant because if the operation queue allows operations to run in parallel, they're each effectively on a different thread.
Also make sure that if you share mutable data structures between the operations (you mentioned an array) that all access to those is properly synchronized. Using an @synchronized block is an easy way to do that.
—Jens
_______________________________________________
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