Re: Synchronizing Thread Execution
Re: Synchronizing Thread Execution
- Subject: Re: Synchronizing Thread Execution
- From: leenoori <email@hidden>
- Date: Tue, 5 Dec 2006 15:48:57 +0100
El 5/12/2006, a las 15:20, Scott Ribe escribió:
@synchronized does not interact with the object
in any way, doesn't send it any messages, at least as far as I know,
so why would it have to be initialized?
You may be right about that, but nil is still not a good idea...
Indeed, you're right. It was pointed out to me that the value of the
pointer, not the location of the variable holding the pointer, is
what matters; otherwise @synchronized (self) would be meaningless.
So @synchronized (nil) or @synchronized (variableThatIsSetToNil)
*might* work in some way, but it won't do what I was thinking it did...
_______________________________________________
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