• 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 18:40:38 -0400
  • Organization: Rogue Research Inc.

On Thu, 19 May 2011 15:32:07 -0700, Greg Parker said:

>There are several cases involved here:
>
>1. You may use an instance on any thread, as long as every use is
>synchronized such that only one thread uses that instance at a time.
>2. You may create an instance on any thread, and must not use it on any
>other thread (with or without synchronization).
>3. Something else.
>
>The section "Thread-Unsafe Classes" does not distinguish among these
>cases. For example, NSMutableData is #1, NSAutoreleasePool is #2, and
>NSArchiver is #3.

Ah, brilliant!  Is there documentation that does make those
distinctions?  It says "Check the class documentation for additional
details" but I click the link for NSMutableData for example and the word
'thread' does not appear on that page.

Having more granular categorizations is really needed, and apparently lacking.

--
____________________________________________________________
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: Greg Parker <email@hidden>
References: 
 >"Use them from only one thread at a time" (From: Jerry Krinock <email@hidden>)
 >Re: "Use them from only one thread at a time" (From: Sean McBride <email@hidden>)
 >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: Sean McBride <email@hidden>)
 >Re: "Use them from only one thread at a time" (From: Greg Parker <email@hidden>)

  • Prev by Date: Re: "Use them from only one thread at a time"
  • Next by Date: Re: "Use them from only one thread at a time"
  • 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