Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pointer assignment inherently atomic ?



Hi, Chase,

Is there any reason that you can't ensure your program variable's safety using @synchronized in an accessor?

Cheers,
	Andrew

On Aug 10, 2007, at 1:38 PM, Chase wrote:


On August 10, 2007, Scott Ribe wrote:

Even if pointer assignment is atomic, you have to consider cache coherency
across multiple cores.

my understanding is that cache coherency is taken care of at the hardware level and that only very low-level stuff like kernel drivers and such would need to worry about it.


this particular app would fall under the "multimedia" umbrella... video playback and such, but nothing kernel-deep.

knowing this, is it possible that pointer assignment will be effectively atomic even across multiple cores?

thanks.

- chase



_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: pointer assignment inherently atomic ? (From: "Chase" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.