Re: [LAD] [LAU] Simple, easy multithreaded circular buffer library for Linux?

From: Fons Adriaensen <fons@email-addr-hidden>
Date: Sun Oct 19 2008 - 20:08:58 EEST

On Sun, Oct 19, 2008 at 12:36:55PM -0400, Paul Coccoli wrote:

> The only time you can get away without atomic ops is on uni-processor.
> Please cite a reference that says otherwise.

Plaese show us how using a non-atomic addition could go wrong.

> Notice that all the fixes proposed all involve removing the "+=" and
> using only assignment.

First, that is not the same as requiring atomic addition.
Second, it is not true. The one I proposed just does the '+='.
If it's wrong show us how.

Ciao,

-- 
FA
Laboratorio di Acustica ed Elettroacustica
Parma, Italia
Lascia la spina, cogli la rosa.
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Mon Oct 20 00:15:02 2008

This archive was generated by hypermail 2.1.8 : Mon Oct 20 2008 - 00:15:02 EEST