Re: [linux-audio-dev] crossplatform atomics

From: Paul Davis <paul@email-addr-hidden>
Date: Thu May 25 2006 - 03:58:34 EEST

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.
Received on Thu May 25 04:15:06 2006

This archive was generated by hypermail 2.1.8 : Thu May 25 2006 - 04:15:06 EEST