Re: [LAD] Atomic Operations

From: Stephen Sinclair <radarsat1@email-addr-hidden>
Date: Tue Dec 15 2009 - 18:23:42 EET

On Tue, Dec 15, 2009 at 9:24 AM, Gabriel M. Beddingfield
<gabriel@teuton.org> wrote:
>
>
> On Tue, 15 Dec 2009, Paul Davis wrote:
>
>> i should perhaps note that there tends to be less use of generic lock
>> free data structures because of the absence of nice libraries. maybe
>> effo can be a useful addition there. its not as if its the first one,
>> however.
>
> Also worth mentioning... for C++ fans out there...
>
> The ringbuffer shipped with libjack is a C port of the
> RingBuffer<T> container from libpbd in Ardour (written by
> Paul Davis and Benno Senoner).
>
> This implementation uses the glib atomic ops and some glib
> types.  Since my app doesn't currently use glib, I was
> looking at replacing those with some equivalent.  That's
> partially how this thread got started. :-)

For one of my projects I once ported the kfifo implementation in the
Linux kernel to a C++ class. Feel free to use it if you'd find it
useful. (GPL)

http://github.com/radarsat1/dimple/blob/master/src/CircBuffer.h

Steve
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Tue Dec 15 20:15:05 2009

This archive was generated by hypermail 2.1.8 : Tue Dec 15 2009 - 20:15:05 EET