This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Atomic operations on the ARM
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Phil Edwards <phil at jaj dot com>
- Cc: Benjamin Kosnik <bkoz at redhat dot com>, Richard dot Earnshaw at arm dot com, rearnsha at arm dot com, gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Fri, 04 Oct 2002 11:10:53 +0100
- Subject: Re: Atomic operations on the ARM
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> I don't think the two approaches overlap much even today, if at all.
> I've occasionally thought about making the generic atomicity.h routines
> call into the gthr.h layer, thus bringing them together and providing a
> fallback atomicity header that is actually atomic, if terribly slow.
Surely the cost would only be noticeable if there was another thread
trying to update an atomic variable at the same time. And that's the case
that we are getting wrong at present with the 'don't do atomic operations'
code that we have at present.
R.