• 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: @synchronized([someObject class])
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: @synchronized([someObject class])


  • Subject: Re: @synchronized([someObject class])
  • From: "Ken Ferry" <email@hidden>
  • Date: Thu, 21 Jun 2007 02:59:41 -0700

On 6/19/07, Chris Suter <email@hidden> wrote:

The way @synchronised works is that it synchronises anything that has the same pointer value of whatever is in the brackets. It doesn't matter what the type between the brackets is, so long as it's a pointer.

Hopefully this is clear, but the source code is not the contract.. the contract is that @synchronized takes an object. The source may be interesting reading, but you should not rely on the information you get.

-Ken
_______________________________________________

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


  • Follow-Ups:
    • Re: NSFormatter interfering with bindings continuous update?
      • From: Joe Wildish <email@hidden>
References: 
 >@synchronized([someObject class]) (From: Ruotger Skupin <email@hidden>)
 >Re: @synchronized([someObject class]) (From: Chris Suter <email@hidden>)

  • Prev by Date: Re: Protocol Handling?
  • Next by Date: Re: NSFormatter interfering with bindings continuous update?
  • Previous by thread: Re: @synchronized([someObject class])
  • Next by thread: Re: NSFormatter interfering with bindings continuous update?
  • Index(es):
    • Date
    • Thread