On Jul 15, 2010, at 2:13 PM, Michael Link wrote: > Is it necessary to use objc_atomicCompareAndSwapInstanceVariableBarrier when > setting an instance variable such as an NSInteger in a GC app? Or would > OSAtomicCompareAndSwap64Barrier be more appropriate?
The objc version is necessary only for GC pointers. For other values both functions will work, but the OSAtomic version may be faster. -- Greg Parker gpar...@apple.com Runtime Wrangler _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com