Barrier / atomic operations on multiprocessors.

Brian Dessent
Sat May 27 16:22:00 GMT 2006

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 <>.


More information about the Gcc-help mailing list