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