On Tue, Dec 15, 2009 at 9:24 AM, Gabriel M. Beddingfield <[email protected]> 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 [email protected] http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
