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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to