This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Atomic operations on the ARM
- From: Jason R Thorpe <thorpej at wasabisystems dot com>
- To: Richard dot Earnshaw at arm dot com
- Cc: Daniel Jacobowitz <drow at mvista dot com>,Benjamin Kosnik <bkoz at redhat dot com>, rearnsha at arm dot com,gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Fri, 4 Oct 2002 10:21:42 -0700
- Subject: Re: Atomic operations on the ARM
- Organization: Wasabi Systems, Inc.
- References: <20021003173931.GA32365@nevyn.them.org> <200210041009.g94A95925427@pc960.cambridge.arm.com>
On Fri, Oct 04, 2002 at 11:09:05AM +0100, Richard Earnshaw wrote:
> But really the above is just the same as using a mutex, since almost
> certainly a good threading implementation on the ARM would be already
> using swp to handle the mutex...
Well...
A restartable atomic sequence is faster on some ARM architecture CPUs
(and certainly all the ones I've tried it on), and would thus be preferable
on a uniprocessor.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>