[linux-audio-dev] crossplatform atomics
Jens M Andreasen
jens.andreasen at chello.se
Thu May 25 01:23:43 UTC 2006
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 ...
>
>
--
More information about the Linux-audio-dev
mailing list