installing the <atomic.h> header?

Joseph S. Myers joseph@codesourcery.com
Fri Nov 5 05:27:00 GMT 2010


On Thu, 4 Nov 2010, Chris Metcalf wrote:

> Glibc uses <atomic.h> (with <bits/atomic.h>) internally but does not
> install it.  The header would seem to be a great way to provide convenience
> wrappers to atomic functionality.  On our platforms (TILEPro, TILE-Gx) the

Clearly the proper wrappers to provide would be C1x <stdatomic.h> rather 
than exporting glibc's internal interfaces.  Given the tricky ABI issues 
and compiler interaction, I think you want to wait for the compiler work 
described at <http://gcc.gnu.org/wiki/Atomic> to be more nearly complete 
before implementing the header in conjunction with the people working on 
that compiler support.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list