Re: Preventing beach balls
Re: Preventing beach balls
- Subject: Re: Preventing beach balls
- From: Seth Willits <email@hidden>
- Date: Sun, 18 Feb 2007 18:00:07 -0800
On Feb 18, 2007, at 5:52 PM, Paul Borokhov wrote:
Thanks, I guess I'll give this another shot. I had originally done
the detachNewThread thing, but after some testing my app crashed
and I figured it was because I was doing something wrong...
So do I need to do anything special to use instance variables of
the main thread from within methods on the detached thread? Or is
this handled automatically by Cocoa?
Anytime two threads are using the same resource regardless of what or
where it is (unless it itself is thread safe, which most things are
not), there's a potential for things to go wrong or horribly wrong.
You need to using techniques to keep things safe.
http://developer.apple.com/documentation/Cocoa/Conceptual/
Multithreading/index.html#//apple_ref/doc/uid/10000057i
--
Seth Willits
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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