• 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: Greg Parker <email@hidden>
  • Date: Thu, 19 May 2011 15:52:32 -0700

On May 19, 2011, at 3:40 PM, Sean McBride wrote:
> 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.

None that I know of. You should file a bug report, whether it needs to be written or easier to find.


--
Greg Parker     email@hidden     Runtime Wrangler


_______________________________________________

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

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