Re: Synchronizing Thread Execution
Re: Synchronizing Thread Execution
- Subject: Re: Synchronizing Thread Execution
- From: Scott Ribe <email@hidden>
- Date: Tue, 05 Dec 2006 12:31:38 -0700
- Thread-topic: Synchronizing Thread Execution
> AFAIK it does NSStringFromSelector(_cmd), which returns an NSString,
> which
> *is* an Objective-C object.
I don't think so. This was discussed earlier, and that doesn't necessarily
return a unique string instance. If it did do this, it should most certainly
be documented that the behavior of the @synchronized keyword is "overloaded"
in this manner.
Given the discussion of the implementation, I think it just treats the
pointer as an integer for a lookup. But this ought to be documented, because
as it stands now there's nothing in the documentation that rules out it
using some *other* special-case voodoo on a selector, consider
NSUniqueStringFromSelector as a hypothetical for-instance.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
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