This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: atomic_*_barrier macros


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]