Re: Synchronizing Thread Execution
Re: Synchronizing Thread Execution
- Subject: Re: Synchronizing Thread Execution
- From: Scott Ribe <email@hidden>
- Date: Wed, 06 Dec 2006 15:53:36 -0700
- Thread-topic: Synchronizing Thread Execution
> Agreed, the example looks broken to me too. I also checked
> NSStringFromSelector()'s behaviour (and disassembled it for good
> measure). About the only thing I can think is that CFString's
> implementation might once have unified the strings where now it doesn't.
Are we sure that @synchronized is supposed to key on object identity? I
infer that from the docs but I don't see it stated explicitly, and my one
printed Objective-C reference is too old to mention @synchronized.
The other possibility is that some prior version of @synchronized was built
on -hash and -isEqual. I don't think that's likely, but I don't see anything
in the docs to rule it out.
The reason I'm still flogging this is that I'm planning to file my own bug
report asking for better documentation on this, so first I'd like to know if
there is some Objective-C reference that I've missed which specifies the
behavior more thoroughly.
--
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