• 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: "Use them from only one thread at a time"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Use them from only one thread at a time"


  • Subject: Re: "Use them from only one thread at a time"
  • From: Sean McBride <email@hidden>
  • Date: Thu, 19 May 2011 16:56:00 -0400
  • Organization: Rogue Research Inc.

On Thu, 19 May 2011 13:22:32 -0700, Jerry Krinock said:

>"Thread-Unsafe Classes.  The following classes and functions are
>generally not thread-safe. In most cases, you can use these classes from
>any thread as long as you use them from only one thread at a time."
>
>I'm confused by the second sentence.

Indeed.  Surely they don't mean that.

>Would it be correct to restate it
>like this…
>
>"In most cases, although you can allocate instances of these classes on
>any thread, each instance must receive messages only from the thread
>which allocated it."

I believe so.  See also:
<http://www.mikeash.com/pyblog/friday-qa-2009-01-09.html>

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada
_______________________________________________

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: "Use them from only one thread at a time"
      • From: Quincey Morris <email@hidden>
    • Re: "Use them from only one thread at a time"
      • From: "Stephen J. Butler" <email@hidden>
References: 
 >"Use them from only one thread at a time" (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: The simplest way to fade out a view
  • Next by Date: Re: The simplest way to fade out a view
  • Previous by thread: Re: "Use them from only one thread at a time"
  • Next by thread: Re: "Use them from only one thread at a time"
  • Index(es):
    • Date
    • Thread