atomic_*_barrier macros
Rémi Denis-Courmont
remi@remlab.net
Thu Aug 6 06:59:00 GMT 2009
On Wed, 5 Aug 2009 22:34:00 -0400, Matt Turner <mattst88@gmail.com> wrote:
> What's the correct thing to do here? Could we add atomic macros for
> needed platforms and export atomic.h?
With recent enough GCC, I think you can get a full R/W barrier with the
__sync_synchronize() built-in (there is no support for weaker ones though)
on about any platform.
--
Rémi Denis-Courmont
More information about the Libc-help
mailing list