• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Concurrent tasks are getting hung up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Concurrent tasks are getting hung up
      • From: Steve Mills <email@hidden>
References: 
 >Concurrent tasks are getting hung up (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: Open document panel always on top - Mountain Lion
  • Next by Date: Re: Open document panel always on top - Mountain Lion
  • Previous by thread: Concurrent tasks are getting hung up
  • Next by thread: Re: Concurrent tasks are getting hung up
  • Index(es):
    • Date
    • Thread