[linux-audio-dev] lock-free ring buffer code
Bob Ham
rah at bash.sh
Fri Apr 4 14:11:01 UTC 2003
On Thu, 2003-04-03 at 21:14, rm wrote:
> below is what i use (i think it works). the primary thing to notice
> is that readers and writers are kept in line by the atomicity of
> integer assignment (though in general, we should probably declare them
> atomic_t or something).
Attached is the fifo I've had banging about. It uses atomic_t.
--
Bob Ham <rah at bash.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lff.c
Type: text/x-c
Size: 3292 bytes
Desc: not available
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20030404/91491d6f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lff.h
Type: text/x-c-header
Size: 1694 bytes
Desc: not available
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20030404/91491d6f/attachment-0001.bin>
-------------- 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/91491d6f/attachment.pgp>
More information about the Linux-audio-dev
mailing list