• 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: Wed, 06 Dec 2006 10:53:37 -0700
  • Thread-topic: Synchronizing Thread Execution

> I'm not sure,
> therefore,
> what it is that you're disagreeing with.

- I misread the example and somehow saw @synchronized(_cmd) instead.

- But I have just verified on 10.4.8 that NSStringFromSelector(_cmd) returns
a distinct NSString instance with each invocation. So unless @synchronized
does some compiler voodoo with a hidden static variable to only evaluate it
once, or uses something other than object identity in order to map locks,
the example is wrong.


--
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

  • Follow-Ups:
    • Re: Re: Synchronizing Thread Execution
      • From: "Shawn Erickson" <email@hidden>
    • Re: Synchronizing Thread Execution
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: Re: thread spinning ...
  • Next by Date: Re: Synchronizing Thread Execution
  • Previous by thread: Re: Re: Re: Synchronizing Thread Execution
  • Next by thread: Re: Synchronizing Thread Execution
  • Index(es):
    • Date
    • Thread