This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 2/4] Add atomic operations similar to those provided by C11.
- From: Torvald Riegel <triegel at redhat dot com>
- To: GLIBC Devel <libc-alpha at sourceware dot org>
- Date: Wed, 29 Oct 2014 23:15:09 +0100
- Subject: Re: [PATCH 2/4] Add atomic operations similar to those provided by C11.
- Authentication-results: sourceware.org; auth=none
- References: <1414617613 dot 10085 dot 23 dot camel at triegel dot csb> <1414619416 dot 10085 dot 46 dot camel at triegel dot csb>
On Wed, 2014-10-29 at 22:50 +0100, Torvald Riegel wrote:
> This patch adds atomic operations similar to C11.
>
> The function naming is essentially the C11 names, but with the memory
> order argument removed and added as a suffix. For example, C11's
> atomic_store_explicit(&foo, 23, memory_order_release)
> becomes
> atomic_store_relaxed (&foo, 23);
Typo, sorry. The latter should in fact be
atomic_store_release (&foo, 23);