This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Barrier / atomic operations on multiprocessors.
- From: Brian Dessent <brian at dessent dot net>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 27 May 2006 09:22:01 -0700
- Subject: Re: Barrier / atomic operations on multiprocessors.
- References: <44787466.1070905@personallegal.net>
- Reply-to: gcc-help at gcc dot gnu dot org
Ray Whitmer wrote:
> Is there a generic way to access efficient platform-appropriate memory
> barriers (also compare and swap) in any arbitrary C or C++ program
> compiled under gcc (not just a compiler ordering directive, but
> extending to hardware guarantees)?
>
> If it is documented somewhere, I apologize.
Well, there's <http://gcc.gnu.org/onlinedocs/gcc/Atomic-Builtins.html>.
Brian