Re: How to implement readonly property
Re: How to implement readonly property
- Subject: Re: How to implement readonly property
- From: Kyle Sluder <email@hidden>
- Date: Sat, 08 Dec 2012 10:24:43 -0800
On Dec 8, 2012, at 10:06 AM, Steve Sisak <email@hidden> wrote:
>
> Further, if writes were not complete at the end of the block, the construct would be essentially useless for its intended purpose.
By the way, you're wrong about this too. All @synchronized does is act as a mutex around a code block. It does not cause the compiler to reorder instructions and issue memory barriers in such a way that initialization is guaranteed to precede assignment from the perspective of all threads.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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