Re: Crash and dispatch queue
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