• 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: Preventing beach balls
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Preventing beach balls
      • From: Dave Sopchak <email@hidden>
References: 
 >Preventing beach balls (From: Paul Borokhov <email@hidden>)
 >Re: Preventing beach balls (From: Seth Willits <email@hidden>)
 >Re: Preventing beach balls (From: Paul Borokhov <email@hidden>)

  • Prev by Date: Re: Preventing beach balls
  • Next by Date: Re: MDImporters Help
  • Previous by thread: Re: Preventing beach balls
  • Next by thread: Re: Preventing beach balls
  • Index(es):
    • Date
    • Thread