[linux-audio-dev] lock-free ring buffer code

Bob Ham rah at bash.sh
Fri Apr 4 14:41:17 UTC 2003

On Fri, 2003-04-04 at 20:00, Bob Ham wrote:

>       if (atomic_read (&lff->write_index) >= lff->size)
>         atomic_set (&lff->write_index, -1);

Oops.. should be

          atomic_set (&lff->write_index, 0);

Bob Ham <rah at bash.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20030404/19e09c9f/attachment.pgp>

More information about the Linux-audio-dev mailing list