ISO C11's stdatomic.h

Robert Edmonds edmonds at mycre.ws
Thu Sep 10 17:08:24 UTC 2015


Evan Hunt wrote:
> On Thu, Sep 10, 2015 at 12:24:28PM +0200, Petr Spacek wrote:
> > Well, it should be possible to plug in gcc atomics as another 'architecture'
> > which will be used if configure script detects that compiler supports that.
> 
> That's the way I'd want to go.
> 
> Thank you, Robert, for bringing the gcc atomic support to my
> attention.  I'll open a ticket about it.

Awesome, thanks.

Note that these atomics are in Standard C11, they're not gcc specific;
notably clang also supports them.  I'm not sure about the best way to go
about detecting support at configure time; <http://git.io/vZBci> looks
reasonable, but I haven't tested it.

-- 
Robert Edmonds


More information about the bind-workers mailing list