Re: Synchronizing Thread Execution
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