[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] Fw: [gpsd-commit-watch] [SCM] GPSD branch, master, update
Eric S. Raymond
Re: [gpsd-dev] Fw: [gpsd-commit-watch] [SCM] GPSD branch, master, updated. release-3.12-61-g16645be
Thu, 26 Feb 2015 15:44:25 -0500
Gary E. Miller <address@hidden>:
> > memory_barrier() now uses a standardized C11 lockless-concurrency
> > primitive.
> Wow, C11 a bit pushy. At least it is optional...
Yes. There's less actual change here than meets the eye; the same
compilers that would have supported the old, grubby implementation
(GCC >= 4.7) support stdatomic.h. It probably even compiles to the
same object code.
The main difference is that the C11 implementation should work under
clang >= 3.1. That gives me a happy feeling; I think clang support
is going to become increasingly important and want GPSD to stay
ahead of its adoption curve. One of my pre-release tests nowadays
is "scons -c; CC=clang scons check".
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>