[PATCH] Add atomic operations required by the new condition variable.

Torvald Riegel triegel@redhat.com
Wed Jun 15 08:49:00 GMT 2016


On Wed, 2016-06-15 at 09:09 +0200, Florian Weimer wrote:
> On 06/14/2016 08:21 PM, Torvald Riegel wrote:
> 
> >> Maybe an explicit list of all modern glibc atomics somewhere would help
> >> to avoid all doubts.
> >
> > I wouldn't like to maintain it on the wiki or such, but we could decide
> > to list the available atomics at the top of include/atomic.h, or
> > something like that.  Would that have been helpful for you?
> 
> Maybe extract the list using sed from the relevant header(s) and put it 
> into the internals manual?  If the naming convention is explained along 
> the list, I don't think further per-macro documentation is necessary.

That's perhaps too much machinery or things we need to remember to do
for something that's rather simple to see by looking at
include/atomic.h, if one knows where to look for it.

I've updated https://sourceware.org/glibc/wiki/Concurrency with more
details on the naming scheme and instructions for how to easily see
which atomic operations we currently declare.



More information about the Libc-alpha mailing list