• 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: Synchronizing Thread Execution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Synchronizing Thread Execution (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: NSTableView first column reorder...
  • Next by Date: Re: NSTableView first column reorder...
  • Previous by thread: Re: Synchronizing Thread Execution
  • Next by thread: Re: Synchronizing Thread Execution
  • Index(es):
    • Date
    • Thread