Re: [linux-audio-dev] crossplatform atomics

From: Jens M Andreasen <jens.andreasen@email-addr-hidden>
Date: Thu May 25 2006 - 04:23:43 EEST

On Wed, 2006-05-24 at 20:58 -0400, Paul Davis wrote:
> On Thu, 2006-05-25 at 02:44 +0200, Jens M Andreasen wrote:
> > On Thu, 2006-05-25 at 02:24 +0200, Jens M Andreasen wrote:
> > > > >> I am looking for a cross-platform implementation of an atomic
> > > > >> integer.
> > >
> > > sizeof(int) is your friend
> > >
> > > int speedy; as well, since int is defined to be the fastest integer on
> > > your platform of choice.
> > >
> > Uhmm, I was reliying on you using a contemporary implementation. For a
> > philosophical discussion you might prefer to look elsewhere
>
> not sure what you mean, but on sparcs, int writes are not atomic unless
> you only use the lower 24 bits.
>
Right, I tried to retract some of what I said that is only valid for the
cheap stuff available today

BTW: What sparc? I came in with 64bit datapaths ...
>
>

-- 
Received on Thu May 25 16:15:01 2006

This archive was generated by hypermail 2.1.8 : Thu May 25 2006 - 16:15:01 EEST