• 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: Crash and dispatch queue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash and dispatch queue


  • Subject: Re: Crash and dispatch queue
  • From: Wade Tregaskis <email@hidden>
  • Date: Thu, 17 Nov 2011 12:57:18 -0800

> [myObject saveDataToFile];

What does this method actually do?  From the sounds of it your analysis has determined that running this from a thread other than the main one is problematic.

If so, first thing is to figure out why the thread matters at all.  If you can't make it thread safe, then perform your work asynchronously as in your first case, but wrap the call to save in a dispatch back to the main queue.
_______________________________________________

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

References: 
 >Crash and dispatch queue (From: James Maxwell <email@hidden>)

  • Prev by Date: Re: Crash and dispatch queue
  • Next by Date: Quick validation of an audio file?
  • Previous by thread: Re: Crash and dispatch queue
  • Next by thread: Quick validation of an audio file?
  • Index(es):
    • Date
    • Thread