site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com ---- Thanks, Matt Darland _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... If I have an integer value X that is usually incremented through OSIncrementAtomic, but in occasional cases I'm holding a mutex (via lck_mtx_lock) to a structure that contains X, and I want to increment X: Can I just ++X while holding the mutex and avoid also having to call OSIncrementAtomic in those rare cases? i.e. Do OSxxxAtomic and lck_mtx_xxx enforce the same memory coherency with respect to an integer? This email sent to site_archiver@lists.apple.com